Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created April 20, 2019 06:55
Show Gist options
  • Save MeetMartin/834097d556330a8e7bd24ffb532b145e to your computer and use it in GitHub Desktop.
Save MeetMartin/834097d556330a8e7bd24ffb532b145e to your computer and use it in GitHub Desktop.
// monadic (unary) function accepts only one argument
const monadic = one => one + 1;
// this is not monadic (unary)
const notMonadic = (one, two) => one + two;
// this is curry, monadic and higher-order function
const curry = one => two => one + two;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment