Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix X with lazy second argument
  • Loading branch information
niner committed Sep 14, 2015
1 parent 57340b4 commit 56634c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/List.pm
Expand Up @@ -955,8 +955,9 @@ sub infix:<X>(|lol) {

if $Inf { # general case treats all lists as potentially lazy
return gather {
my @i = @l.map: *.iterator;
while $i >= 0 {
my \e = @l[$i].pull-one();
my \e = @i[$i].pull-one();
if e !=:= IterationEnd {
nqp::bindpos($v, $i, e);
if $i >= $n { take nqp::clone($v) }
Expand Down

0 comments on commit 56634c5

Please sign in to comment.