whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
Math
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/Math/max.php
<?php declare(strict_types=1); namespace Psl\Math; /** * Returns the largest element of the given list, or null if the * list is empty. * * @template T of int|float * * @param list<T> $numbers * * @return T|null * * @pure */ function max(array $numbers): null|int|float { $max = null; foreach ($numbers as $number) { if (null === $max || $number > $max) { $max = $number; } } return $max; }
Copyright ©2021 || Defacer Indonesia