HH\Lib\Math\minva
Requires the Hack Standard Library to be installed.
Facebook Engineer?
This function is available as Math\minva()
in Facebook's www repository.
Returns the smallest of all input numbers
namespace HH\Lib\Math;
function minva<T as num>(
T $first,
T $second,
T ...$rest,
): T;
- To find the largest number, see
Math\maxva()
. - For Traversables, see
Math\min()
.
Parameters
T $first
T $second
T ...$rest
Returns
T