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