Skip to content

Instantly share code, notes, and snippets.

@arodland
Created September 15, 2009 04:10
Show Gist options
  • Select an option

  • Save arodland/187108 to your computer and use it in GitHub Desktop.

Select an option

Save arodland/187108 to your computer and use it in GitHub Desktop.
$ ./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