Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix named parameter for Supply.zip
  • Loading branch information
lizmat committed Apr 19, 2014
1 parent 4a1e6a7 commit c27f546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Supply.pm
Expand Up @@ -90,7 +90,7 @@ my role Supply {
method uniq(:&as,:&with) { SupplyOperations.uniq(self, :&as, :&with) }
method squish(:&as,:&with) { SupplyOperations.squish(self, :&as, :&with) }
method merge($s) { SupplyOperations.merge(self, $s) }
method zip($s, *@with) { SupplyOperations.zip(self, $s, |@with) }
method zip($s,:&with) { SupplyOperations.zip(self, $s, :&with) }
}

# The on meta-combinator provides a mechanism for implementing thread-safe
Expand Down
3 changes: 2 additions & 1 deletion src/core/SupplyOperations.pm
Expand Up @@ -259,7 +259,8 @@ my class SupplyOperations is repr('Uninstantiable') {
}
}

method zip(Supply $a, Supply $b, &with = &infix:<,>) {
method zip(Supply $a, Supply $b, :&with is copy ) {
&with //= &[,];
my @as;
my @bs;
on -> $res {
Expand Down

0 comments on commit c27f546

Please sign in to comment.