RosettaCodeData/Task/Variadic-function/Perl-6/variadic-function-1.pl6

8 lines
142 B
Raku
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
sub foo {
.say for @_;
say .key, ': ', .value for %_;
}
foo 1, 2, command => 'buckle my shoe',
3, 4, order => 'knock at the door';