Course of Raku / Functional, concurrent, reactive, and web programming / Functional programming / Data feeds / Exercises

Feed the big numbers

Problem

Using a feed, take the numbers 1..10, keep only those greater than 5, and collect them into an array. Print the array.

Example

The program prints:

[6 7 8 9 10]

Solution

See the solution

Course navigation

Quiz — Feeds   |   Solution: Feed the big numbers