Skip to content

Instantly share code, notes, and snippets.

Created July 3, 2011 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/1062470 to your computer and use it in GitHub Desktop.
Save anonymous/1062470 to your computer and use it in GitHub Desktop.
;; 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