Course of Raku / Functional, concurrent, reactive, and web programming / Reactive programming / Supplies / Exercises
Filter a supply
Problem
Create a supply from the numbers 1..6, filter it so only
the even values pass through, and collect the results into an array.
Print the array.
Example
The program prints:
[2 4 6]