Re: strings into lists
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg1286] Re: strings into lists
- From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
- Date: Wed, 31 May 1995 05:25:47 -0400
- Organization: University of Colorado, Boulder
In article <3q6d16$854 at news0.cybernetics.net>,
Andreas Knobel <andreas at cc.kyoto-su.ac.jp> wrote:
>
>I want to turn a string of symbols into a list, yet
>
>List@@"a"
>
>does not seem to work. Is this a bug? On my system
>List@@"a" just renders "a".
>
>Andreas
I'm not sure if you want to turn every character in the string into
a symbol, but if so, here's how to do it:
ToExpression /@ Characters["abc"]
{a, b, c}
InputForm[%]
{a, b, c}
Dave Wagner
Principia Consulting
(303) 786-8371
dbwagner at princon.com
http://www.princon.com/princon