Created
December 15, 2019 11:00
-
-
Save WimJongeneel/a1033b96ef62d2973d5be6c59ea0134f 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
with: <p extends Pattern<a>>( | |
pattern: p, | |
expr: (a: Extract<a, typeof pattern>) => b | |
) => match(value, otherwise, [...patterns, [pattern, expr]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment