Course of Raku / Functional, concurrent, reactive, and web programming / Reactive programming / react and whenever / Exercises
Two whenevers
Problem
Using one react block with two
whenever blocks, add up the values of two supplies — one
built from 5, 10 and one built from 100, 200.
Print the combined total.
Example
The program prints:
315