map and selector of the passed-in values.auto 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.
map | custom accessor for the comparison key |
selector | custom mapping for the extrema selection |
r | Range from which the extreme value will be selected |
seedElement | custom seed to use as initial element |
map and selector of the passed-in values.auto 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))))auto extremum(alias selector = "a < b", Range)(Range r) if (isInputRange!Range && !isInfinite!Range &&
!is(typeof(unaryFun!selector(ElementType!(Range).init))))auto 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))))