Name: Anonymous 2013-03-02 2:18
In this thread, you may post code that makes use of continuations, and I will attempt to produce code that does the same and looks reasonably similar, without using continuations.
(if-fail (let ((x (an-element-of '(1 3 5 8))))
(require (even? x))
x)
'all-odd)
(let ((success (lambda (x) x))
(fail (lambda () 'all-odd)))
(an-element-of '(1 3 5 8) (lambda (x fail)
(if (even? x)
(success x)
(fail)))
fail))