Skip to content

Commit

Permalink
make cross metaop respect itemization
Browse files Browse the repository at this point in the history
  • Loading branch information
vendethiel committed Aug 28, 2015
1 parent 348886d commit eda95ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/metaops.pm
Expand Up @@ -27,7 +27,8 @@ sub METAOP_CROSS(\op, &reduce) {
my \elem = lol[$i]; # can't use mapping here, mustn't flatten
$Inf = True if elem.is-lazy;

nqp::istype(elem, Iterable)
nqp::iscont(elem) ?? (elem,).iterator
!! nqp::istype(elem, Iterable)
?? elem.iterator
!! elem.list.iterator;
}
Expand Down

0 comments on commit eda95ad

Please sign in to comment.