Re: NthPermutation: how to change output format?
- To: mathgroup at smc.vnet.net
- Subject: [mg49850] Re: NthPermutation: how to change output format?
- From: BV <dont at bug.me>
- Date: Wed, 4 Aug 2004 10:46:27 -0400 (EDT)
- References: <cejsat$cpo$1@smc.vnet.net> <cen87c$ln$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Peltio wrote: > "BV" wrote: > > >> {a, b, 2, c, 3, e, d, 1} >>How do I get directly: >> ab2c3ed1 >>without commas and parentheses? > > > If you want a string use this > > crunch[res_List]:=StringJoin[ToString/@res] > > But if you want a symbol, use this instead > > crunch[res_List]:=ToExpression[StringJoin[ToString/@res]] > > crunch[{a, b, 2, c, 3, e, d, 1}] > ab2c3ed1 > > > cheers, > Peltio > Invalid address in reply-to. Crafty demunging required to mail me. > Thanks everyone for so much help. You people are great :)