|
From: | David Kastrup |
Subject: | Re: Change a string in to a identical list |
Date: | Thu, 04 Jun 2020 13:23:38 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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) 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. -- David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |