Skip to content

Instantly share code, notes, and snippets.

@evaporei
Created September 13, 2019 19:56
Show Gist options
  • Select an option

  • Save evaporei/3daaa67fec85a8b05603841b5aa2bc07 to your computer and use it in GitHub Desktop.

Select an option

Save evaporei/3daaa67fec85a8b05603841b5aa2bc07 to your computer and use it in GitHub Desktop.
Category Theory - Monads
interface Monad<A> {
bind<B>(f: (a: A) => Monad<B>): Monad<B>
return(a: A): Monad<A>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment