Created
September 15, 2009 04:10
-
-
Save arodland/187108 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
| $ ./perl6 | |
| > multi sub foo (Num $n where { $_ > 10 }) { say "$n is big!" } | |
| > multi sub foo (Num $n) { say "$n is not so big" } | |
| > foo(42); | |
| 42 is big! | |
| > foo(3); | |
| 3 is not so big |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment