From: Ken A. <kan...@bb...> - 2002-10-22 00:41:30
|
Using {} flattens any lists and string appends the results. So, when you really want the lisp value as a string, use .toString or something. > (define data '((tokenizer.scm 1.49) (match.scm 1.47))) ((tokenizer.scm 1.49) (match.scm 1.47)) > {[data]} "tokenizer.scm1.49match.scm1.47" > (.toString data) "((tokenizer.scm 1.49) (match.scm 1.47))" > At 06:34 PM 10/21/2002, you wrote: >Ken - > >What's the simplest way in Scheme to go from a list like > >'((tokenizer.scm 1.49) (match.scm 1.47)) > >to a string like > >"((tokenizer.scm 1.49) (match.scm 1.47))" > >I thought I might be able to use the {} but it strips parens and >spaces: > >> cvsTokenizerTags >((tokenizer.scm 1.49) (match.scm 1.47)) >> {[cvsTokenizerTags]} >"tokenizer.scm1.49match.scm1.47" > >Do you know of an elegant way for me to get a string representation of >the list? > >Thanks, >Renu > >-- >----------------------- >Renu Kurien Bostwick >re...@bb... >(617) 873-4543 >----------------------- |