Skip to content

Commit

Permalink
Merge pull request #26 from stmuk/master
Browse files Browse the repository at this point in the history
post Sep 30 2015 append replaces shift
  • Loading branch information
lizmat committed Aug 9, 2016
2 parents ea2a4d0 + 57e34bb commit fbee8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microbenchmarks.pl
Expand Up @@ -131,7 +131,7 @@
work => sub { 1 << $_[0] },
expected => sub { (1 << $_[0]) . "\n" },
perl5 => 'my @a; push @a, 42; my $i = 0; while (++$i <= SCALE) { push @a, @a }; say scalar @a;',
perl6 => 'my @a; @a.push(42); my $i = 0; while (++$i <= SCALE) { @a.push(@a) }; say +@a;',
perl6 => 'my @a; @a.push(42); my $i = 0; while (++$i <= SCALE) { @a.append(@a) }; say +@a;',
nqp => 'my @a; nqp::push(@a, 42); my $i := 0; while ($i := $i + 1) <= SCALE { my $elems := nqp::elems(@a); my $j := 0; while $j < $elems { nqp::push(@a, @a[$j]); $j++; } }; say(+@a);',
},
{
Expand Down

0 comments on commit fbee8cb

Please sign in to comment.