Create a gist now

Instantly share code, notes, and snippets.

4clojure #97 - Pascal's Triangle
;; hyone's solution to Pascal's Triangle
;; https://4clojure.com/problem/97
(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