On Thu, Jun 4, 2020 at 7:23 AM David Kastrup <d...@gnu.org> wrote:
>
> Freeman Gilmore <freeman.gilm...@gmail.com> writes:
>
> > How to change a string in to a identical list.
> > From  "-3 31 A -6 B -8"  to  (-3 31 A -6 B -8).    (Or from  ("-3"
> > "31" "A" "-6" "B" "-8")  to  (-3 31 A -6 B -8)  if it is simpler.)
>
> Why would you even start with a string then instead of reading a list in
> the first place?
>
> You can use something like
>
> (with-input-from-string (string-append "( " "-3 31 A -6 B -8" " )") read)
Thank you that works. ƒg
>
> but it looks like you are doing something fundamentally backwards if you
> don't read what is supposed to be a list in as a list in the first
> place.
Starting with \j “-3+31   A -6+B -8”  , two less key stroke for entry, simple.
True I could start with \j #’(-3+31   A -6+B -8) .
With all the list help and the guile manual I now have:
(“-3” “31” “A” “-6” “B” “-8”) , and
(-3 31 A -6 B -8) .
I want to try something with these, need both.


>
> --
> David Kastrup

Reply via email to