Skip Menu |
Report information
Id: 131060
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: elizabeth <liz [at] dijkmat.nl>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Sat, 25 Mar 2017 21:17:02 +0100
To: rakudobug [...] perl.org
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Subject: .grep does not fire FIRST / LAST / NEXT phasers
Download (untitled) / with headers
text/plain 358b
$ 6 'dd <a b c>.grep: { FIRST say "first"; LAST say "last"; NEXT say "next"; ENTER say "enter"; LEAVE say "leave"; 1 }' enter leave enter leave enter leave ("a", "b", "c").Seq This may have been a problem for a *long* time! This should probably be fixed during the hyper / race refactor, which will need to take a look at using grep asynchronously anyway.
Download (untitled) / with headers
text/plain 407b
Note that currently there're two paths that can be taken that's affected by arity of the grep's block. So the tests should also test with blocks of arity 2+, like: <Zoffix_> m: dd <a b c d>.grep: -> $, $ { FIRST say "first"; LAST say "last"; NEXT say "next"; ENTER say "enter"; LEAVE say "leave"; 1 } <camelia> rakudo-moar b01d7e: OUTPUT: «enter␤leave␤enter␤leave␤(("a", "b"), ("c", "d")).Seq␤»


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org