Course of Raku / Functional, concurrent, reactive, and web programming / Reactive programming / react and whenever / Exercises

Collect with react

Problem

Using a react block, collect the values of a supply built from 1, 2, 3 into an array. Print the array after the react block finishes.

Example

The program prints:

[1 2 3]

Solution

See the solution

Course navigation

Solution: Collect with react   |   Solution: Collect with react