Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: create character listing

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112565] Re: create character listing
  • From: Peter Pein <petsie at dordos.net>
  • Date: Mon, 20 Sep 2010 05:43:01 -0400 (EDT)
  • References: <i74lmb$jjp$1@smc.vnet.net>

Am Sun, 19 Sep 2010 09:38:19 +0000 (UTC)
schrieb shippee <slshippee at gmail.com>:

> What would be the best way to create a character/string listing of all
> values in columnar format from "aaa" through "bzz"?  I'd like to end
> up with something like:
> 
> aaa
> aab
> aac
> ...
> ...
> bzz
> 
> Thanks in advance, I've been away from Mathematica for a couple of
> years and forgotten almost everything I'd ever learned, so I'm
> starting over.  All I could find in searching this list was variations
> on the distribution of "abc", if I missed a more on point posting
> please point me in the right direction.
> 

Column[StringJoin @@@ 
  Distribute[{{"a", "b"}, CharacterRange["a", "z"], 
    CharacterRange["a", "z"]}, List]]

should work.

Regards,
 Peter



  • Prev by Date: how implement a rule
  • Next by Date: Re: How to run Mathematica nb file in command line in windows?
  • Previous by thread: Re: create character listing
  • Next by thread: Re: create character listing