Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix "Method 'iterator' not found" in infix:<Z>
  • Loading branch information
niner committed Aug 25, 2015
1 parent 2ffd6ab commit 42c2d81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/List.pm
Expand Up @@ -969,8 +969,9 @@ sub infix:<Z>(|lol) {
return if $arity == 0;
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 }
nqp::istype(elem, Iterable)
?? elem.iterator
!! elem.list.iterator;
};

gather {
Expand Down

0 comments on commit 42c2d81

Please sign in to comment.