MathGroup Archive 2006

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

Search the Archive

Re: Decompose string into list


> 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"}

S = "Foo bar";

StringTake[S, {#}] & /@ Range[StringLength[S]]


  • Prev by Date: Utilizing the Result From Solve[]
  • Next by Date: does anybody know how to find the inverse Laplace transform of this wierd thing?
  • Previous by thread: Re: Decompose string into list
  • Next by thread: Re: Decompose string into list