Skip to content

Commit

Permalink
Fix series operator bug in the initial elements of a series.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Apr 12, 2010
1 parent ae2e81b commit 8b256a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/operators.pm
Expand Up @@ -387,8 +387,9 @@ our multi sub infix:<...>(@lhs is copy, $rhs) {
my $top = $arity min @lhs.elems;
for 0..^$top -> $i {
$j = @lhs[$i];
take $j;
@args.push($j);
my $jj = $j;
take $jj;
@args.push($jj);
}

if !$limit.defined || $limit cmp $j != 0 {
Expand Down

0 comments on commit 8b256a9

Please sign in to comment.