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

Sort with a feed

Problem

Using a feed, take the numbers 3, 1, 2, sort them, and collect the result into an array. Print the array.

Example

The program prints:

[1 2 3]

Solution

See the solution

Course navigation

Solution: A feed pipeline   |   Solution: Sort with a feed