@@ 14-23 (lines=10) @@ | ||
11 | * |
|
12 | * @return mixed |
|
13 | */ |
|
14 | function gte(/* ...$args */) |
|
15 | { |
|
16 | $args = func_get_args(); |
|
17 | ||
18 | $gte = function ($a, $b) { |
|
19 | return $a >= $b; |
|
20 | }; |
|
21 | ||
22 | return call_user_func_array(partial($gte), $args); |
|
23 | } |
|
24 |
@@ 14-23 (lines=10) @@ | ||
11 | * |
|
12 | * @return mixed |
|
13 | */ |
|
14 | function lte(/* ...$args */) |
|
15 | { |
|
16 | $args = func_get_args(); |
|
17 | ||
18 | $lte = function ($a, $b) { |
|
19 | return $a <= $b; |
|
20 | }; |
|
21 | ||
22 | return call_user_func_array(partial($lte), $args); |
|
23 | } |
|
24 |