Closed
Description
Since #328 changes MaxBy
and MinBy
to return a list, I propose to add PartialMaxBy
and PartialMinBy
that take an extra parameter indicating the maximum count of extrema elements to return. It avoids wastage building a list of all extrema elements and scanning the entire source sequence when one may be satisfied with, for example, any of the first ones.