Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Optimize push a little.
  • Loading branch information
jnthn committed Oct 23, 2011
1 parent f7995a5 commit f7d3d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -144,7 +144,7 @@ my class List does Positional {
method push(*@values) {
my $pos = self.elems;
fail '.push on infinite lists NYI' if $!nextiter.defined;
self.STORE_AT_POS($pos++, @values.shift) while @values;
self.STORE_AT_POS($pos++, @values.shift) while @values.gimme(1);
self;
}

Expand Down

0 comments on commit f7d3d5d

Please sign in to comment.