Skip to content

Instantly share code, notes, and snippets.

@plaidfinch
Created January 26, 2014 18:18
Show Gist options
  • Save plaidfinch/8636963 to your computer and use it in GitHub Desktop.
Save plaidfinch/8636963 to your computer and use it in GitHub Desktop.
pascalLists :: [[Integer]]
pascalLists = map pascalList [0..]
where
pascalList n =
map view .
takeWhile ((>= 0) . row) .
iterate (go $ above & right) .
goto (0,n) $ pascal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment