src/Functions/Map/Single.php
public static function max(array $xs, $value): array
    {
        return array_map(
            function ($x) use ($value) {
                return max($x, $value);
            },
            $xs
        );
    }
public static function max(array $xs, $value): array
    {
        return array_map(
            function ($x) use ($value) {
                return max($x, $value);
            },
            $xs
        );
    }
public static function max ( array $ xs , $ value ) : array { return array_map ( function ( $ x ) use ( $ value ) { return max ( $ x , $ value ) ; } , $ xs ) ; }
Map max value
Each element in the array is compared against the value,
and the max of each is returned.

@param  array  $xs
@param  number $value

@return array
Map max value Each element in the array is compared against the value and the max of each is returned .