method maxpairs
| 1 | class Any |
| 1.1 | (Any) method maxpairs |
| 2 | role Setty |
| 2.1 | (Setty) method maxpairs |
Documentation for method maxpairs assembled from the following types:
class Any
From Any
(Any) method maxpairs
Defined as:
multi method maxpairs(Any:)
Calls .pairs and returns a Seq with all of the Pairs with maximum values, as judged by the cmp operator:
<a b c a b c>.maxpairs.perl.put; # OUTPUT: «(2 => "c", 5 => "c").Seq»%(:42a, :75b).maxpairs.perl.put; # OUTPUT: «(:b(75),).Seq»
role Setty
From Setty
(Setty) method maxpairs
Defined As:
multi method maxpairs(Setty: --> Seq)
Returns the value of self.pairs (as all Pairs have maximum values). See also Any.maxpairs