Created
November 19, 2020 10:14
-
-
Save kasperpeulen/ed9f3e2de4ef0e10d15ca4be95ccd7a2 to your computer and use it in GitHub Desktop.
This file contains 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
// Given | |
declare const monad: Monad<A> | |
declare function f(a: A): Monad<B>; | |
declare function g(b: B): Monad<C>; | |
// Then | |
flatMap(flatMap(monad, f), g) === flatMap(monad, (a) => flatMap(f(a), g)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment