Skip to content

Commit

Permalink
Add missing first value in triangle reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 20, 2015
1 parent 2c088cc commit 83a29ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/metaops.pm
Expand Up @@ -112,6 +112,7 @@ multi sub METAOP_REDUCE_LEFT(\op, \triangle) {

my $result := first;
GATHER({
take first;
until (my \value = source.pull-one) =:= IterationEnd {
take ($result := op.($result, value));
}
Expand Down

0 comments on commit 83a29ca

Please sign in to comment.