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;
06
13
04
02

The feed sends 1..6 into grep(* > 3), which keeps 4, 5, 6, and stores them in @big. So @big.elems is 3.

Course navigation

The feed operator   |   Chaining feeds