Subject: Re: Separation of words
From: (Rob Warnock)
Date: 1996/11/13
Newsgroups: comp.lang.scheme
Message-ID: <56c3o1$>

Raul Antonio Trejo Ramirez  <> wrote:
| (string->list (symbol->string 'word))
| ==> '(#\w #\o #\r #\d)
| My question then is, how do we get rid of the \# using r4rs Scheme?

The top-level REPL usually uses "write" to print its result.
If you explicitly use "display" I think you'll get what you want:

	> (begin (display (string->list (symbol->string 'word)))
	(w o r d)

Or if you prefer:

	> (define (print . rest)
	    (for-each display rest)
	> (print (string->list (symbol->string 'word)))
	(w o r d)


Rob Warnock, 7L-551
Silicon Graphics, Inc.
2011 N. Shoreline Blvd.		Phone: 415-933-1673  FAX: 415-933-0979
Mountain View, CA  94043	PP-ASEL-IA