Skip to content

Instantly share code, notes, and snippets.

@Icelandjack
Last active Aug 24, 2017
Embed
What would you like to do?
TODO: Stuff
@Icelandjack
Copy link
Author

Icelandjack commented Aug 24, 2017

A tutorial on the universality and expressiveness of fold

uses

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