extremum

private fnauto extremum(alias map, alias selector = "a < b", Range)(Range r) if (isInputRange!Range && !isInfinite!Range && is(typeof(unaryFun!map(ElementType!(Range).init))))

Iterates the passed range and selects the extreme element with less. If the extreme element occurs multiple time, the first occurrence will be returned.

Parameters

mapcustom accessor for the comparison key
selectorcustom mapping for the extrema selection
rRange from which the extreme value will be selected
seedElementcustom seed to use as initial element

Returns

The extreme value according to map and selector of the passed-in values.
private fnauto extremum(alias map, alias selector = "a < b", Range, RangeElementType = ElementType!Range)(Range r, RangeElementType seedElement) if (isInputRange!Range && !isInfinite!Range && !is(CommonType!(ElementType!Range, RangeElementType) == void) && is(typeof(unaryFun!map(ElementType!(Range).init))))
No documentation available for this declaration.
private fnauto extremum(alias selector = "a < b", Range)(Range r) if (isInputRange!Range && !isInfinite!Range && !is(typeof(unaryFun!selector(ElementType!(Range).init))))
No documentation available for this declaration.
private fnauto extremum(alias selector = "a < b", Range, RangeElementType = ElementType!Range)(Range r, RangeElementType seedElement) if (isInputRange!Range && !isInfinite!Range && !is(CommonType!(ElementType!Range, RangeElementType) == void) && !is(typeof(unaryFun!selector(ElementType!(Range).init))))
No documentation available for this declaration.