Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow :with on Z and zip
  • Loading branch information
TimToady committed Mar 30, 2015
1 parent 253bb58 commit 8dc34c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/LoL.pm
Expand Up @@ -155,6 +155,9 @@ sub infix:<X>(|lol) {
sub infix:<Z>(|lol) {
my $arity = lol.elems;
return if $arity == 0;
if lol.hash && lol.hash<with> {
return METAOP_ZIP(lol.hash<with>, &reduce)(|lol.list);
}
my @l = eager for ^$arity -> $i {
my \elem = lol[$i]; # can't use mapping here, mustn't flatten

Expand Down

0 comments on commit 8dc34c2

Please sign in to comment.