Skip to content
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

.grep() does not propagate .is-lazy #5499

Closed
p6rt opened this issue Jul 29, 2016 · 5 comments
Closed

.grep() does not propagate .is-lazy #5499

p6rt opened this issue Jul 29, 2016 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 29, 2016

Migrated from rt.perl.org#128773 (status was 'resolved')

Searchable as RT128773$

@p6rt
Copy link
Author

p6rt commented Jul 29, 2016

From @zoffixznet

TimToady │ m​: say (1 ... *).grep(*.is-prime).is-lazy;
camelia │ rakudo-moar 61725d​: OUTPUT«False␤»
TimToady │ looks like grep needs the .lazy-if($laze) treatment

TimToady │ unmatched}​: if .grep can't propagate .is-lazy, it's just a bug

http://irclog.perlgeek.de/perl6/2016-07-29#i_12934375
http://irclog.perlgeek.de/perl6-dev/2016-07-29#i_12934366

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jul 29, 2016

From @lizmat

Fixed with 22949d8efef15e7002315 , tests needed

On 29 Jul 2016, at 19​:22, Zoffix Znet (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Zoffix Znet
# Please include the string​: [perl #​128773]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128773 >

TimToady │ m​: say (1 ... *).grep(*.is-prime).is-lazy;
camelia │ rakudo-moar 61725d​: OUTPUT«False␤»
TimToady │ looks like grep needs the .lazy-if($laze) treatment

TimToady │ unmatched}​: if .grep can't propagate .is-lazy, it's just a bug

http://irclog.perlgeek.de/perl6/2016-07-29#i_12934375
http://irclog.perlgeek.de/perl6-dev/2016-07-29#i_12934366

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jul 29, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 30, 2016

From @zoffixznet

Tests added in Raku/roast@896d43f962

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jul 30, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jul 30, 2016
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant