New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zip operator Z should return a list of parcels #1842
Comments
From justin.sahs@gmail.comciphertext: rakudo: (1,2,3 Z 4,5,6).perl.say Also from S03: 1,2 Z 3,4 # (1,3),(2,4) |
From justin.sahs@gmail.comzip.patchdiff --git a/src/core/operators.pm b/src/core/operators.pm
index 7e02233..3726bc1 100644
--- a/src/core/operators.pm
+++ b/src/core/operators.pm
@@ -531,8 +531,7 @@ our multi sub infix:<Z>($lhs, $rhs) {
gather while ?$lhs-list && ?$rhs-list {
my $a = $lhs-list.shift;
my $b = $rhs-list.shift;
- take $a;
- take $b;
+ take $a, $b;
}
}
|
@coke - Status changed from 'new' to 'open' |
From @cokeOn Thu Jun 17 00:38:17 2010, ciphertext wrote:
This appears to be working now: 08:45 < [Coke]> rakudo: (1,2,3 Z[,] 4,5,6).perl.say There's a test in S03-metaops/zip.t to make sure this parses, but not to -- |
From @moritznow tested in S03-metaops/zip.t |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#75818 (status was 'resolved')
Searchable as RT75818$
The text was updated successfully, but these errors were encountered: