Created
December 5, 2018 22:14
-
-
Save jrsinclair/02994518f1b5ff50276818ec32f0d613 to your computer and use it in GitHub Desktop.
Elegant Error Handling Code Samples
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
function liftA2(func) { | |
return function runApplicativeFunc(a, b) { | |
return b.ap(a.map(func)); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment