Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Last active November 19, 2020 09:38
Show Gist options
  • Save kasperpeulen/822f297d4244a8ec8a0271ef7a1e057c to your computer and use it in GitHub Desktop.
Save kasperpeulen/822f297d4244a8ec8a0271ef7a1e057c to your computer and use it in GitHub Desktop.
// Given
declare const monad: Monad<A>;
// Then
flatMap(monad, a => of(a)) === monad
// === means 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