MathGroup Archive 2010

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

Search the Archive

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




  • Prev by Date: Re: 0/1 knapsack-like minimalization problem and file
  • Next by Date: Re: Running Mathematica code using DOS
  • Previous by thread: Combining elements of a list
  • Next by thread: Re: Combining elements of a list