Skip to content

Commit

Permalink
Remove two more uses of .gimme(1)
Browse files Browse the repository at this point in the history
Compiles, but does not cause more spectest passes
  • Loading branch information
moritz committed Aug 19, 2015
1 parent 2f5c4ed commit e9911c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/metaops.pm
Expand Up @@ -147,14 +147,15 @@ multi sub METAOP_REDUCE_RIGHT(\op, \triangle) {
my $ :=
#?endif
sub (*@values) {
my $list := @values.reverse;
return () unless $list.gimme(1);
my \list = @values.reverse;
my $result := list.pull-one;
return () if $result =:= IterationEnd;

gather {
my $result := $list.shift;
take $result;
take ($result := op.($list.shift, $result))
while $list.gimme(1);
while (my $elem = list.pull-one) !=:= IterationEnd {
take $result := op.($elem, $result)
}
}
}
}
Expand Down

0 comments on commit e9911c0

Please sign in to comment.