Monday, February 26, 2018

Clojure: nth line of Pascal triangle

((fn [n] (last (take n (iterate #(map + `(0 ~@%) `(~@% 0)) [1])))) 4)
(1 3 3 1)