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
Cross product with a .map in the rhs yields an empty list in Rakudo #3311
Comments
From @masak<clsn> r: say <a b>.map({$_}) X, <c d>.map({$_}) |
From mark@kli.orgThe problem is that the map is lazy and the X operator doesn't make it generate values:
Note that once $b[0..3] are generated in order to put into $c, those elements--and only those--are available to the X op. |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6This works now: $ perl6 -e 'say <a b> X <c d>.map({$_})' $ perl6 -e 'say <a b>.map({$_}) X <c d>' $ perl6 -e 'say <a b>.map({$_}) X <c d>.map({$_})' I added tests to S03-metaops/cross.t with commit Raku/roast@d3aa62b272 I'm closing this ticket. |
1 similar comment
From @usev6This works now: $ perl6 -e 'say <a b> X <c d>.map({$_})' $ perl6 -e 'say <a b>.map({$_}) X <c d>' $ perl6 -e 'say <a b>.map({$_}) X <c d>.map({$_})' I added tests to S03-metaops/cross.t with commit Raku/roast@d3aa62b272 I'm closing this ticket. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#120973 (status was 'resolved')
Searchable as RT120973$
The text was updated successfully, but these errors were encountered: