Created
January 4, 2023 18:42
-
-
Save baetheus/460d07523c16d3b49c07b1840d94ad7f to your computer and use it in GitHub Desktop.
Const Types in Deno Doc
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
export const apply1 = | |
<A>(ua: Promise<A>) => <I>(ufai: Promise<(a: A) => I>): Promise<I> => | |
Promise.all([ua, ufai]).then(([a, fai]) => fai(a)); | |
export const apply2: <A>( | |
ua: Promise<A>, | |
) => <I>(ufai: Promise<(a: A) => I>) => Promise<I> = apply1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment