Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Last active December 2, 2018 04:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinipsmaker/093bec679b533c1db02b to your computer and use it in GitHub Desktop.
Save vinipsmaker/093bec679b533c1db02b to your computer and use it in GitHub Desktop.
unit(value).bind(f) === f(value);
monad.bind(unit) === monad;
(monad.bind(f).bind(g)
=== monad.bind(function(value) { return f(value).bind(g); }))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment