Subject: Re: Separation of words
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1996/11/13
Newsgroups: comp.lang.scheme
Message-ID: <56c3o1$i9j@tokyo.engr.sgi.com>

Raul Antonio Trejo Ramirez  <rtrejo@campus.cem.itesm.mx> 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)))
		 (newline))
	(w o r d)
	> 

Or if you prefer:

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


-Rob

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