The maxpairs routine

Combined from primary sources listed below.

In class Any ( Type/Any )§

See primary docmentation in context for method maxpairs.

method maxpairs§

multi method maxpairs(Any:D:)

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.raku.put# OUTPUT: «(2 => "c", 5 => "c").Seq␤»
%(:42a, :75b).maxpairs.raku.put# OUTPUT: «(:b(75),).Seq␤»

In role Setty ( Type/Setty )§

See primary docmentation in context for method maxpairs.

method maxpairs§

multi method maxpairs(Setty:D: --> Seq:D)

Returns the value of self.pairs (as all Pairs have maximum values). See also Any.maxpairs