Skip to content

Commit fbee8cb

Browse files
authored
Merge pull request #26 from stmuk/master
post Sep 30 2015 append replaces shift
2 parents ea2a4d0 + 57e34bb commit fbee8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microbenchmarks.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
work => sub { 1 << $_[0] },
132132
expected => sub { (1 << $_[0]) . "\n" },
133133
perl5 => 'my @a; push @a, 42; my $i = 0; while (++$i <= SCALE) { push @a, @a }; say scalar @a;',
134-
perl6 => 'my @a; @a.push(42); my $i = 0; while (++$i <= SCALE) { @a.push(@a) }; say +@a;',
134+
perl6 => 'my @a; @a.push(42); my $i = 0; while (++$i <= SCALE) { @a.append(@a) }; say +@a;',
135135
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);',
136136
},
137137
{

0 commit comments

Comments
 (0)