Skip to content

Instantly share code, notes, and snippets.

@lfranchi
Created October 2, 2012 17:01
Show Gist options
  • Save lfranchi/3821159 to your computer and use it in GitHub Desktop.
Save lfranchi/3821159 to your computer and use it in GitHub Desktop.
(fn [n] (map (fn rec [y]
(if (< y 2)
y
(+ (rec (- y 2)) (rec (- y 1)))))
(range 1 (+ n 1))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment