[plt-scheme] Teaching Scheme

From: Nadeem Abdul Hamid (nadeem at acm.org)
Date: Mon May 3 11:55:30 EDT 2010

> I'm starting to get the feeling that it isn't possible to print to stdout in Scheme? Is this the case?

I copied the C code example into a file, "test.c" and Eli's code into "test.ss". Opened a terminal and:

--- The C version:

  $ gcc -o test.exe test.c
  $ ./test.exe
Door #1 is open..
....
... (a long mess of 100 lines of output, more than can fit on the screen at a time without scrolling)
....



--- The PLT-Scheme version:

   $ mzscheme test.ss 
(1 4 9 16 25 36 49 64 81 100)




nadeem



Posted on the users mailing list.