@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $args = func_get_args(); |
| 19 | 19 | |
| 20 | - $getin = function (array $xs, array $ks, $notfound = false) { |
|
| 20 | + $getin = function(array $xs, array $ks, $notfound = false) { |
|
| 21 | 21 | if (false === isset($ks[0])) { |
| 22 | 22 | return $xs; |
| 23 | 23 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $args = func_get_args(); |
| 17 | 17 | |
| 18 | - $get = function (array $xs, $x, $notfound = false) { |
|
| 18 | + $get = function(array $xs, $x, $notfound = false) { |
|
| 19 | 19 | if (isset($xs[$x])) { |
| 20 | 20 | return $xs[$x]; |
| 21 | 21 | } |
@@ -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,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | |
| 14 | - $has = function ($x, array $xs) { |
|
| 14 | + $has = function($x, array $xs) { |
|
| 15 | 15 | return array_key_exists($x, $xs); |
| 16 | 16 | }; |
| 17 | 17 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | $args = func_get_args(); |
| 15 | 15 | |
| 16 | - $reduce = function (callable $fn, array $xs, $initial = null) { |
|
| 16 | + $reduce = function(callable $fn, array $xs, $initial = null) { |
|
| 17 | 17 | return array_reduce($xs, $fn, $initial); |
| 18 | 18 | }; |
| 19 | 19 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | |
| 14 | - $each = function (callable $fn, array $xs) { |
|
| 14 | + $each = function(callable $fn, array $xs) { |
|
| 15 | 15 | array_walk($xs, $fn); |
| 16 | 16 | return $xs; |
| 17 | 17 | }; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | $args = func_get_args(); |
| 15 | 15 | |
| 16 | - $filter = function (callable $fn, array $xs) { |
|
| 16 | + $filter = function(callable $fn, array $xs) { |
|
| 17 | 17 | return array_filter($xs, $fn); |
| 18 | 18 | }; |
| 19 | 19 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | |
| 14 | - $take = function ($n, array $xs) { |
|
| 14 | + $take = function($n, array $xs) { |
|
| 15 | 15 | return array_slice($xs, 0, $n); |
| 16 | 16 | }; |
| 17 | 17 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | |
| 14 | - $concat = function ($a, $b /* ...$args */) { |
|
| 14 | + $concat = function($a, $b /* ...$args */) { |
|
| 15 | 15 | $rest = array_slice(func_get_args(), 2); |
| 16 | 16 | |
| 17 | 17 | return call_user_func_array('array_merge', array_merge([$a, $b], $rest)); |