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

MathGroup Archive 2009

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

Search the Archive

Re: Generating a list numnber in string format

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102644] Re: [mg102598] Generating a list numnber in string format
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Mon, 17 Aug 2009 04:07:15 -0400 (EDT)
  • References: <200908161040.GAA01235@smc.vnet.net>

Hi,

what about

getNames[symb_String, n_Integer] := (symb <> ToString[#] &) /@ 
  Range[n];
getNames["bin", 10]


?

Cheers
Patrick

On Sun, 2009-08-16 at 06:40 -0400, Richard Trilling wrote:
> Hello,
> 
> I would like to be able generate a list of numbers from 1 to n string 
> format.
> 
> binlist={"1","2","3","4",..."n"}
> 
> I need to use them in this format to map into a list of variable names
> 
> binnames = Map["bin" <> # &, binlist] 
> 
> 
> 



  • Prev by Date: Re: Do-command
  • Next by Date: A Question about Combinatorica
  • Previous by thread: Re: Generating a list numnber in string format
  • Next by thread: Re: Generating a list numnber in string format