Skip to content

Instantly share code, notes, and snippets.

Last active August 24, 2017 09:29
What would you like to do?
TODO: Stuff
Copy link

A tutorial on the universality and expressiveness of fold


fold :: (α  β  β)  β  ([α]  β)

instead of

fold :: (a -> b -> b) -> b -> [a] -> b
-- or
fold :: (a -> b -> b) -> (b -> [a] -> b)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment