Skip to content

Instantly share code, notes, and snippets.

@debasishg
Last active December 16, 2015 09:58
Show Gist options
  • Select an option

  • Save debasishg/5416472 to your computer and use it in GitHub Desktop.

Select an option

Save debasishg/5416472 to your computer and use it in GitHub Desktop.
mapReduce :: (k1 -> v1 -> [(k2, v2)]) -- The Map function
-> (k2 -> [v2] -> Maybe v3) -- The Reduce function
-> Map k1 v1 -- a key to input - value mapping
-> Map k2 v3 -- a key to output - value mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment