Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Last active November 20, 2020 10:42
Show Gist options
  • Save kasperpeulen/dbad688975d622f9d77ccf12598c608c to your computer and use it in GitHub Desktop.
Save kasperpeulen/dbad688975d622f9d77ccf12598c608c to your computer and use it in GitHub Desktop.
Monad functions
function of<A>(value: A): Monad<A>;
function flatMap<A, B>(monad: Monad<A>, callback: (a: A) => Monad<B>): Monad<B>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment