Course of Raku / Functional, concurrent, reactive, and web programming / Functional programming / Data feeds / The feed operator
Quiz — The feed operator
What does the following program print?
(1..6) ==> grep(* > 3) ==> my @big;
say @big.elems;| 0 | 6 |
| 1 | 3 |
| 0 | 4 |
| 0 | 2 |
The feed sends 1..6 into grep(* > 3),
which keeps 4, 5, 6, and stores them in @big.
So @big.elems is 3.