In role Setty§
See primary documentation in context for method minpairs
multi method minpairs(Setty: --> Seq)
Returns the value of self.pairs
(as all Pairs have minimum values). See also Any.minpairs
In Any§
See primary documentation in context for method minpairs
multi method minpairs(Any:)
Calls .pairs
and returns a Seq
with all of the Pairs with minimum values, as judged by the cmp
operator:
<a b c a b c>.minpairs.raku.put; # OUTPUT: «(0 => "a", 3 => "a").Seq»%(:42a, :75b).minpairs.raku.put; # OUTPUT: «(:a(42),).Seq»