Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix infix:<X> with Seq as first argument
  • Loading branch information
moritz committed Aug 25, 2015
1 parent 90d45ed commit 508d223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/List.pm
Expand Up @@ -850,11 +850,11 @@ sub infix:<X>(|lol) {
}
my int $n = lol.elems - 1;
my $Inf = False;
my @l = eager for 0..$n -> $i {
eager my @l = do for 0..$n -> $i {
my \elem = lol[$i]; # can't use mapping here, mustn't flatten
$Inf = True if $i and elem.is-lazy;
nqp::istype(elem, Iterable)
?? elem
?? elem.item # without this .item, a Seq would get iterated by the "for"
!! elem.list;
}

Expand Down

0 comments on commit 508d223

Please sign in to comment.