[racket] How to forbid Racket console to display lists?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sat Aug 23 09:01:27 EDT 2014

FILE tst.rkt

#lang racket 
(define x (range 100000))

$ racket tst.rkt 


On Aug 14, 2014, at 9:42 PM, 楠字数补丁也 wrote:

> Version Win 8.1 64bit
> 
> Hello, I use "racket.exe [file name]" to execute .rkt file. But sometimes when in this situation (just an example easy to explain):
> 
> #lang racket
> (range 100000)
> 
> The console will automatically display a list of 100000 elements even if I don't want to display it. 
> 
> Some times I just want to know how much time it will take for a function to work out a very large list, for example:
> 
> (define f <a procedure to form a very large list>)
> (time (f args))
> 
> Now in this case, Racket will still try to display the list for you, and you will never see the result you want. So, how to forbid Racket console to display lists? 
> 
> ____________________
>  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/20140823/70ec077e/attachment.html>

Posted on the users mailing list.