Re: Combining elements of a list
- To: mathgroup at smc.vnet.net
- Subject: [mg108848] Re: Combining elements of a list
- From: "Harvey P. Dale" <hpd1 at nyu.edu>
- Date: Sun, 4 Apr 2010 07:43:47 -0400 (EDT)
Jason:
StringJoin@@ToString/@Flatten[Riffle[{{t,h,i,s},{i,s},{a},{t,e,s,t},{m,e
,s,s,a,g,e}}," "]]
Best,
Harvey
-----Original Message-----
From: ebaugh at illinois.edu [mailto:ebaugh at illinois.edu]
Sent: Saturday, April 03, 2010 7:09 AM
To: mathgroup at smc.vnet.net
Subject: [mg108848] [mg108845] Combining elements of a list
How could I go from:
{h,e,l,l,o}
to
{hello}?
That is the first step of what I am really looking to do. Which is
to go from:
{{t,h,i,s},{i,s},{a},{t,e,s,t},{m,e,s,s,a,g,e}}
to
"this is a test message"
Thanks all,
Jason Ebaugh