MathGroup Archive 2010

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

Search the Archive

Re: create character listing


On 9/19/2010 5:38 AM, shippee wrote:
> 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

Here's one way.

alphabet = CharacterRange["a", "z"]

triples = Outer[StringJoin, {"a", "b"}, alphabet, alphabet]

Column[Flatten[triples]]


-- 
Helen Read
University of Vermont


  • Prev by Date: Re: New Version 3 Presentations
  • Next by Date: Mathematica Journal freely accessible
  • Previous by thread: create character listing
  • Next by thread: Re: create character listing