A bozo's blog
Monday, February 26, 2018
Clojure: nth line of Pascal triangle
1
2
((fn [n] (last (take n (iterate #(map + `(
0
~@%) `(~@%
0
)) [
1
]))))
4
)
(
1
3
3
1
)
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)