<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>FILE tst.rkt</div><div><br></div><div>#lang racket </div><div>(define x (range 100000))</div><div><br></div><div>$ racket tst.rkt </div><div><br></div><br><div><div>On Aug 14, 2014, at 9:42 PM, 楠字数补丁也 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><font face="幼圆" size="5" color="#333333">Version Win 8.1 64bit</font></div><div><font face="幼圆" size="5" color="#333333"><br></font></div><div><font face="幼圆" size="5" color="#333333">Hello, I use "racket.exe [file name]" to execute .rkt file. But sometimes when in this situation (just an example easy to explain):</font></div><div><font face="幼圆" size="5" color="#333333"><br></font></div><div><font face="幼圆" size="5" color="#333333">#lang racket</font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;">(range 100000)</span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;"><br></span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;">The console will automatically display a list of 100000 elements even if I don't want to display it. </span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;"><br></span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;">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:</span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;"><br></span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;">(define f <a procedure to form a very large list>)</span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;">(time (f args))</span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;"><br></span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;">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? <span id="_editor_bookmark_start_0" style="display: none; line-height: 0px;"></span></span></font></div><div><font color="#333333" face="幼圆" size="5"><span style="line-height: 36px;"><br></span></font></div>____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br></blockquote></div><br></body></html>