Created
April 20, 2019 06:55
-
-
Save MeetMartin/834097d556330a8e7bd24ffb532b145e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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