[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: list of strings from a string
From: |
David Kastrup |
Subject: |
Re: list of strings from a string |
Date: |
Wed, 03 Jun 2020 17:01:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Freeman Gilmore <freeman.gilmore@gmail.com> writes:
> \version "2.20.0"
>
> #(define Z '())
>
> j = #(define-void-function % Starting form here.
> (x)
> (string>?)
> (set! Z x ))
>
> \j "-3 A -6 1 -B"
>
> #(define Y (string-split Z #\sp ))
> #(display Y) #(newline)
>
> % Gives me this: (-3 A -6 1 -B), string-split => list, I do want a list but
> % I need: ("-3" "A" "-6" "1" "-B"), how do I get this? A list of strings.
This is a list of strings. You just need to use "write" instead of "display".
--
David Kastrup