The Problem

We have a list of things that we want to act against based on how much of the list fulfills a criteria:

The none() junction

incfile 'passwd-check.p6';

Using the one() junction

incfile 'grades.p6'; To test for 2, 3 or othe amounts of grades below threshold, you need List::Util::filter() - a standard part of Perl 5.

Using any() and a scalar

incfile 'any-scalar.p6';

Using any() and any()

incfile 'any-any.p6'; incfile 'any-any2.p6';

Using all() and any()

incfile 'all-any.p6';

Using all() and all()

incfile 'all-all.p6';