min

fnauto min(T...)(T args) if (T.length >= 2 && !is(CommonType!T == void))

Iterates the passed arguments and returns the minimum value.

Parameters

argsThe values to select the minimum from. At least two arguments must be passed, and they must be comparable with `<`.

Returns

The minimum of the passed-in values. The type of the returned value is

the type among the passed arguments that is able to store the smallest value. If at least one of the arguments is NaN, the result is an unspecified value. See minElement for examples on how to cope with NaNs.

See Also

fnT min(T, U)(T a, U b) if (is(T == U) && is(typeof(a < b)))

ditto