Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming / Junctions / Exercises / All even
Solution: All even
Here is a possible solution to the task.
Code
say so all(2, 4, 6) %% 2;🦋 You can find the source code in the file all-positive.raku.
Output
TrueComments
The test autothreads:
%% 2is applied to each value, and thealljunction requires every one to pass.All three numbers are even, so the result is
True. If even one were odd, it would beFalse.
Course navigation
← All even | None negative →