Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def foo():
for x in [1..5]
yield x
yield x*2
(letfn [(first [x]
(when (<= x 5)
(cons x (second x)))))
(second [x]
(cons (* 2 x)
(first (inc x)))))]
(first 1))
;; (1 2 2 4 3 6 4 8 5 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.