Skip to content

Instantly share code, notes, and snippets.

@ghoseb
Created December 17, 2011 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghoseb/1490568 to your computer and use it in GitHub Desktop.
Save ghoseb/1490568 to your computer and use it in GitHub Desktop.
4clojure #97
(fn [n]
(nth
(iterate (fn [row]
(let [prow (partition 2 1 row)]
(concat [1] (map #(apply + %) prow) [1])))
[1])
(dec n)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment