Last active
August 29, 2015 14:28
-
-
Save emdeesee/4c8a9bc6387f9ea1814a to your computer and use it in GitHub Desktop.
My solution to http://www.4clojure.com/problem/60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(fn red | |
([f [v & vs]] (red f v vs)) | |
([f v [u & us]] | |
(cons v (when u (lazy-seq (red f (f v u) us)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment