@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | |
| 14 | - $prop = function ($x, array $xs) { |
|
| 14 | + $prop = function($x, array $xs) { |
|
| 15 | 15 | if (array_key_exists($x, $xs)) { |
| 16 | 16 | return $xs[$x]; |
| 17 | 17 | } |
@@ -11,17 +11,17 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | $placeholder = pipe( |
| 14 | - filter(function ($x) { |
|
| 14 | + filter(function($x) { |
|
| 15 | 15 | return _ === $x; |
| 16 | 16 | }), |
| 17 | 17 | 'array_keys' |
| 18 | 18 | ); |
| 19 | 19 | |
| 20 | - $hold = function (callable $fn) use ($placeholder) { |
|
| 20 | + $hold = function(callable $fn) use ($placeholder) { |
|
| 21 | 21 | $args = array_slice(func_get_args(), 1); |
| 22 | 22 | $ks = $placeholder($args); |
| 23 | 23 | |
| 24 | - return function ($x) use ($fn, $args, $ks) { |
|
| 24 | + return function($x) use ($fn, $args, $ks) { |
|
| 25 | 25 | if ([] === $ks) { |
| 26 | 26 | return call_user_func_array($fn, array_merge($args, [$x])); |
| 27 | 27 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | |
| 14 | - $drop = function ($n, array $xs) { |
|
| 14 | + $drop = function($n, array $xs) { |
|
| 15 | 15 | return array_slice($xs, $n); |
| 16 | 16 | }; |
| 17 | 17 | |