Faster/better way converting from list to string?

Started by newdep, March 15, 2004, 09:01:50 AM

Previous topic - Next topic

newdep

Hello All,



What is the "best" way to convert a list into a string, silly question perhpas

but as it is not a standard function in lisp i can only emagine i.e. as a way

to do it: -->



(join xxx "") ; where xxx is the list and a string is returned.



Any quicker of better way is welcome ;-)



Regards,

Norman.
-- (define? (Cornflakes))

Lutz

#1
(set 'lst '(a b c d e f))



(join (map string lst)) => "abcdef"



;;; or



(string lst) =>"(a b c d e f)"



Lutz