Skip to content

Commit

Permalink
Merge pull request #273 from grondilu/patch-2
Browse files Browse the repository at this point in the history
use for loop instead of while in SEQUENCE
  • Loading branch information
moritz committed Oct 16, 2014
2 parents 86dc3c6 + d792a22 commit 8d0294b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/operators.pm
Expand Up @@ -105,8 +105,8 @@ sub SEQUENCE($left, Mu $right, :$exclude_end) {
my $value;
my $code;
my $stop;
while @left {
$value = @left.shift;
for @left -> $v {
$value := $v;
if $value ~~ Code { $code = $value; last }
if $end_code_arity != 0 {
$end_tail.push($value);
Expand Down

0 comments on commit 8d0294b

Please sign in to comment.