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: Valentin Villenave
Subject: Re: list of strings from a string
Date: Wed, 3 Jun 2020 17:41:41 +0200

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]