Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
;; 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