Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix infix:<Z> to work with non-lists, as suggested by jnthn++. Fixes …
…RT #73836
  • Loading branch information
moritz committed Mar 26, 2010
1 parent b2f995a commit 4a5a252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/operators.pm
Expand Up @@ -460,6 +460,8 @@ our multi sub infix:<Z>(Iterable $a-iterable, Iterable $b-iterable) {
}
}

our multi sub infix:<Z>($a, $b) { &infix:<Z>($a.list, $b.list) }

our multi sub infix:<X>(Iterable $a-iterable, Iterable $b-iterable) {
my $ai = $a-iterable.iterator;
my @b = $b-iterable.Seq;
Expand Down

0 comments on commit 4a5a252

Please sign in to comment.