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
TrueComments
A
nonejunction is true when no value matches the comparison.None of
3, 7, 2is below zero, so the result isTrue. A single negative value would make itFalse.
Course navigation
← None negative | Threads →