lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change a string in to a identical list


From: Freeman Gilmore
Subject: Re: Change a string in to a identical list
Date: Thu, 4 Jun 2020 09:00:40 -0400

On Thu, Jun 4, 2020 at 7:23 AM David Kastrup <dak@gnu.org> wrote:
>
> Freeman Gilmore <freeman.gilmore@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

[Prev in Thread] Current Thread [Next in Thread]