Course of Raku / Functional, concurrent, reactive, and web programming / Functional programming / Data feeds / Exercises
A feed pipeline
Problem
Using a feed with two stages, take the numbers 1..8,
keep those greater than 3, then double each of them.
Collect the result into an array and print it.
Example
The program prints:
[8 10 12 14 16]Solution
Course navigation
← Solution: Feed the big numbers | Solution: A feed pipeline →