Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevent infinite recurse on bare "zip"; fixes RT #119337
  • Loading branch information
perlpilot committed Aug 17, 2014
1 parent b52ef05 commit 7752c57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/LoL.pm
Expand Up @@ -65,6 +65,7 @@ sub infix:<X>(|lol) {

sub infix:<Z>(|lol) {
my $arity = lol.elems;
return if $arity == 0;
my @l = eager for ^$arity -> $i {
my \elem = lol[$i]; # can't use mapping here, mustn't flatten

Expand Down

0 comments on commit 7752c57

Please sign in to comment.