You're using just `write', so you need some whitespace between items:
>
> > (with-input-from-string
>       (with-output-to-string (λ() (write 'x) (write 'y)))
>     read)
> 'xy
>


Wow, thanks a lot, I would have never thought about that. I thought that
'write' was sending data, not mere characters.
Writing a space after each output indeed solves the problem.
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to