Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Iteration in DrScheme

Name: Anonymous 2009-03-29 7:19

Okay, so I'm writing some shit in DrScheme (http://www.plt-scheme.org/, basically it's a derivative of LISP) and I'm trying to figure out how the fuck I should go about implementing iteration. I wrote some quite decent code using for loops to avoid the complicated recursion hell that LISP tends to subject you to but now that I go to run it, it keeps throwing up this error:

reference to undefined identifier: for

Basically, wtf is this shit? PLT Scheme guide section 11 is pretty clear that things like
(for ([i '(1 2 3)])
      (display i))
are perfectly valid scheme. Am I missing something painfully obvious, or is something really fucked up going on?

Name: Anonymous 2009-03-29 8:06

Bible is good and all, but this really strikes me as a situation where either the compiler is not working or I need an import that isn't clearly specified in the manual. And since I have four assignments two tests and a group presentation this week, I really don't have time to read through Bible again for an answer that I doubt is even in there.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List