Created
December 15, 2019 10:46
-
-
Save WimJongeneel/2289b2c668ea28bb098316e605901b42 to your computer and use it in GitHub Desktop.
match-1.ts
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
match(1) | |
.with(1, v => v * 2) | |
.with(2, v => v * v) | |
.otherwise(() => -1) | |
.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment