Welcome to the CHICKEN Scheme pasting service

yin/yang puzzle added by sjamaan on Fri Apr 15 23:39:24 2016

;; The yin/yang puzzle by David Madore, creator of the Unlambda programming language
;; The goal is to figure out what it does without running the program.
;; Failing that, if you run the program, try and explain how it works.

(let* ((yin ((lambda (foo) (newline) foo)
             (call/cc (lambda (bar) bar))))
       (yang ((lambda (foo) (write-char #\*) foo)
              (call/cc (lambda (bar) bar)))))
  (yin yang))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the equality predicate for strings in R5RS?
Visually impaired? Let me spell it for you (wav file) download WAV