Skip to content
Permalink
Browse files

list of iterators can be a list

  • Loading branch information...
lizmat committed Nov 11, 2018
1 parent b6292fe commit 0fa6988cd04fba9be8c9802d4d63af26fdae667f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/metaops.pm6
@@ -25,7 +25,7 @@ sub METAOP_CROSS(\op, &reduce) {
-> +lol {
my $rop = lol.elems == 2 ?? op !! &reduce(op);
my $laze = False;
my @loi = eager for lol -> \elem {
my @loi is List = eager for lol -> \elem {
if nqp::iscont(elem) {
$laze = False;
(elem,).iterator
@@ -86,7 +86,7 @@ sub METAOP_ZIP(\op, &reduce) {
my $arity = lol.elems;
my $rop = $arity == 2 ?? op !! &reduce(op);
my $laze = True;
my @loi = eager for lol -> \elem {
my @loi is List = eager for lol -> \elem {
if nqp::iscont(elem) {
$laze = False;
Rakudo::Iterator.OneValue(elem)

0 comments on commit 0fa6988

Please sign in to comment.
You can’t perform that action at this time.