[racket] multi-line strings in ISL?
p.s. You can also try
(require 2htdp/batch-io)
(check-expect (write-file 'standard-out "hello world\ngood bye\n") 'standard-out)
On Feb 17, 2013, at 5:47 PM, Matthias Felleisen wrote:
>
> You would have to switch to ASL and use display. -- Matthias
>
>
>
> On Feb 17, 2013, at 5:43 PM, Mitchell Wand wrote:
>
>> Is there a good way to create multi-line strings in ISL? For example, instead of producing output in the form
>>
>> (list
>> "(* 11 "
>> " 22 "
>> " 33 "
>> " 44 "
>> " 55) ")
>>
>> [where here I've padded the strings out to 80 characters to force the Racket printer to produce each string on a separate line.]
>>
>> I'd like to have a program that produced the output
>>
>> (* 11
>> 22
>> 33
>> 44
>> 55)
>>
>> preferably without quotations. When I put things like #\n #\newline or #\r in the middle of a string, ISL prints them out like #\n, #\newline, or #\r.
>>
>> Any ideas? What have I overlooked?
>>
>> --Mitch
>>
>>
>> ____________________
>> Racket Users list:
>> http://lists.racket-lang.org/users
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130217/496bf754/attachment.html>