Created
October 5, 2016 13:38
-
-
Save anonymous/ac4518ae1d13a9c1306ca6e66d2bfa05 to your computer and use it in GitHub Desktop.
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
multi f() { 0 } | |
multi f($a) { 1 } | |
multi f($a, $b) { 2 } | |
multi f($a, $b, $c) { 3 } | |
say reduce &f, (); | |
say reduce &f, (10); | |
say reduce &f, (10, 20); | |
say reduce &f, (10, 20, 30); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment