[CM] funny scheme code

Bill Schottstaedt bil at ccrma.Stanford.EDU
Mon Jul 20 11:16:01 PDT 2009


For some reason, this code strikes me as funny:

(let ((j (lambda () 0))
	(k 0))
  (do ((i (j) (j))
	  (j (lambda () 1) (lambda () (+ i 1))))
          ((= i 3) k)
     (set! k (+ k i))))

would you believe 6?  Maybe I need a vacation.



More information about the Cmdist mailing list