Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming / Hyper and race 🆕 / Exercises

A hyper map

Problem

Using .hyper, triple each of the numbers 1 to 5 in parallel, keeping the results in order. Print the result.

Example

The program prints:

(3 6 9 12 15)

Solution

See the solution

Course navigation

Unordered parallelism with race   |   Solution: A hyper map