MathGroup Archive 2006

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

Search the Archive

Re: Decompose string into list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64090] Re: [mg64079] Decompose string into list
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 1 Feb 2006 04:34:21 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Characters[{"Foo bar", "Hello"}]

{{F,o,o, ,b,a,r},{H,e,l,l,o}}


Bob Hanlon

> 
> From: Renan <renan.birck at gmail.com>
To: mathgroup at smc.vnet.net
> Subject: [mg64090] [mg64079] Decompose string into list
> 
> 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: Decompose string into list
  • Next by Date: Singularities at end point in integrations...
  • Previous by thread: Re: Decompose string into list
  • Next by thread: Re: Decompose string into list