Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.424 kb
#!./parrot nqp.pbc
# flattened arguments
plan(6);
sub xyz($x, $y, $z) {
ok( $x == 7, 'first argument');
ok( $y == 8, 'second argument');
ok( $z == 9, 'third argument');
}
sub ijk(:$i, :$j, :$k) {
ok( $i == 1, 'first named argument');
ok( $j == 2, 'second named argument');
ok( $k == 3, 'third named argument');
}
my @a := [7,8,9];
xyz(|@a);
my %a;
%a<i> := 1;
%a<j> := 2;
%a<k> := 3;
ijk(|%a);
Jump to Line
Something went wrong with that request. Please try again.