You are viewing a single comment's thread. Return to all comments →
Pretty much the same thing I did, minus self-recursive definition shenanigans:
pascal = iterate ((++ [1]) . (1:) . (zipWith (+) =<< tail)) [1]
Seems like cookies are disabled on this browser, please enable them to open this website
Pascal's Triangle
You are viewing a single comment's thread. Return to all comments →
Pretty much the same thing I did, minus self-recursive definition shenanigans: