lilypond-user
[Top][All Lists]
Advanced

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

Re: list of strings from a string


From: Freeman Gilmore
Subject: Re: list of strings from a string
Date: Wed, 3 Jun 2020 18:45:11 -0400

David and Valentin Thank you.      I did not know about #(write  ...).
  I will switch to write from now on.

On Wed, Jun 3, 2020 at 11:41 AM Valentin Villenave
<valentin@villenave.net> wrote:
>
> On 6/3/20, Freeman Gilmore <freeman.gilmore@gmail.com> wrote:
> >   % Gives me this: (-3 A -6 1 -B),
>
> Well, it _is_ a list of strings, as you can verify by adding:
>
> #(display (map string? Y))
>
> Or you can use
>   #(write Y)
> instead of (display Y), which will print the double quotes.
>
> >   % I need: ("-3" "A" "-6" "1" "-B"), how do I get this?  A list of
> > strings.
>
> Well, you can always do
>
> #(set! Y (map (lambda (s) (string-append "\"" s "\"")) Y))
>
> but as I said, that’s not necessary.
>
> Cheers,
> -- V.



reply via email to

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