in reply to Re^3: Perl6: Parting of @Arrayed See
in thread Perl6: Parting of @Arrayed See
grep { block } <~ @array
Which allows for left-to-right pipelines:
@in ~> grep { block } ~> @out
And, via unary ~>, allows for duplicates:
cond1 and cond2 do not need to be mutually exclusive (and probably shouldn't be, since otherwise you could use part).given(@foo) { ~> grep { cond1 } ~> @out1; ~> grep { cond2 } ~> @out2; ... }
Disclaimer: This is true this week. God only knows if it'll be true next week. ;^)
=cut
--Brent Dax
There is no sig.
|
|---|