Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming / Junctions / Exercises

Exactly one

Problem

Using a one junction, check whether exactly one of the numbers 1, 2, 3 is equal to 2. Print a plain True or False.

Example

The program prints:

True

Solution

See the solution

Course navigation

Quiz — Autothreading   |   Solution: Exactly one