MathGroup Archive 2006

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

Search the Archive

Decompose string into list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64079] Decompose string into list
  • From: Renan <renan.birck at gmail.com>
  • Date: Tue, 31 Jan 2006 01:14:30 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I can make a string from a list, using:

In[1]:= StringJoin @@ {"F", "o", "o", " ", "b", "a", "r"}
Out[1]:= Foo bar

But I want to "decompose" a string into a list composed by its elements, e.g.

"Foo bar" turns back into {"F", "o", "o", " ", "b", "a", "r"}
"Hello" turns back into {"H","e","l","l","o"}.

How to do this? Mathematica 5.2 on Windows.

Thanks!


  • Prev by Date: Re: Solve, D, and summations
  • Next by Date: general guidelines for bug reporting or "question asking"
  • Previous by thread: problem with constants
  • Next by thread: general guidelines for bug reporting or "question asking"