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

Solution: None negative

Here is a possible solution to the task.

Code

say so none(3, 7, 2) < 0;

🦋 You can find the source code in the file none-equal.raku.

Output

True

Comments

  1. A none junction is true when no value matches the comparison.

  2. None of 3, 7, 2 is below zero, so the result is True. A single negative value would make it False.

Course navigation

None negative   |   Threads