Mathematica 9 is now available
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: [mg112558] Re: create character listing
  • From: Helen Read <hpr at together.net>
  • Date: Mon, 20 Sep 2010 05:41:45 -0400 (EDT)
  • References: <i74lmb$jjp$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

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