Valentin Villenave <valen...@villenave.net> writes: > On 6/3/20, Freeman Gilmore <freeman.gilm...@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.
Also it will not backslash-escape quote marks or newlines or, well, backslashes. If you want a rendition that can be read back by Scheme, «write» really is the saner option. -- David Kastrup