(with-input-from-string (in "(1 2 3 4)")
(read in))
Tuesday, March 31, 2009
with-input-from-string - evaluating lisp object from string
Well, to be precise I just want to convert string representation of a list such as "(1 2 3 4)" into a list object and with-input-from-string is the way to go. It basically opens a character stream from string and "read" can be used to read from this stream.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment