Last active
November 19, 2020 09:39
-
-
Save kasperpeulen/5f432743833ef305dda363becc6c2e59 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 a: A; | |
declare function f(a: A): Monad<B>; | |
// Then | |
flatMap(of(a), a => f(a)) === f(a); | |
// === means here that both parts are equivalent | |
// what equality means can be defined by the monad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment