Course of Raku / Functional, concurrent, reactive, and web programming / Reactive programming / react and whenever / Exercises
Collect with react
Problem
Using a react block with a single whenever,
collect the values of a supply built from the strings 'a',
'b', 'c', pushing each one
upper-cased into an array. Print the array after the
react block finishes.
Example
The program prints:
[A B C]