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

/prog/ Confessions Thread

Name: Anonymous 2015-04-26 21:07

I've never really understood the Y combinator.

Name: Anonymous 2015-04-27 18:57

inside reset is an implicit begin: (begin (some-foo) (shift k ...)) so it will run some-foo always.

If you would do it this way instead, maybe it will act how you expected:

(define (fook v) (begin (some-foo) v))

(fook (shift k ...))

Basically: You have the right idea but got bit by an unusual situation with an implicit special form. Don't worry about it - try to solve ex 4 in the intended way.

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