Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
4clojure #97 - Pascal's Triangle
;; hyone's solution to Pascal's Triangle
(fn [n] (nth (iterate #(vec (map + (conj % 0) (cons 0 %))) '[1]) (dec n)))
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.