Created
May 8, 2020 16:21
-
-
Save caasi/ecf07037c2a34903189fc622bbba92d2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
type PromiseBind<A, B> = (a: Promise<A>, f: (x: Promise<A>) => Promise<B>) => Promise<B>; | |
type OptionBind<A, B> = (a?: A, f: (x: A) => (B | undefined)) => (B | undefined); | |
type ListBind<A, B> = (a: A[], f: (x: A) => B[]) => B[]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment