Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More idiomatic use of eager
  • Loading branch information
moritz committed Aug 25, 2015
1 parent 48791be commit 90d45ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/List.pm
Expand Up @@ -967,11 +967,11 @@ sub infix:<Z>(|lol) {
}
my $arity = lol.elems;
return if $arity == 0;
my @l = eager for ^$arity -> $i {
eager my @l = (^$arity).map: -> $i {
my \elem = lol[$i]; # can't use mapping here, mustn't flatten
if nqp::iscont(elem) { (elem,).iterator }
else { elem.iterator }
}
};

gather {
loop {
Expand Down

0 comments on commit 90d45ed

Please sign in to comment.