@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $take = function ($x, array $xs) { |
|
14 | + $take = function($x, array $xs) { |
|
15 | 15 | return array_slice($xs, 0, $x); |
16 | 16 | }; |
17 | 17 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $has = function ($x, $xs) { |
|
14 | + $has = function($x, $xs) { |
|
15 | 15 | return array_key_exists($x, (array) $xs); |
16 | 16 | }; |
17 | 17 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $drop = function ($x, array $xs) { |
|
14 | + $drop = function($x, array $xs) { |
|
15 | 15 | return array_slice($xs, $x); |
16 | 16 | }; |
17 | 17 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $append = function ($x, array $xs) { |
|
14 | + $append = function($x, array $xs) { |
|
15 | 15 | return array_merge($xs, [$x]); |
16 | 16 | }; |
17 | 17 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $prop = function ($x, $xs) { |
|
14 | + $prop = function($x, $xs) { |
|
15 | 15 | $xs = (array) $xs; |
16 | 16 | |
17 | 17 | if (array_key_exists($x, $xs)) { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $args = func_get_args(); |
17 | 17 | |
18 | - $get = function ($xs, $x, $notfound = false) { |
|
18 | + $get = function($xs, $x, $notfound = false) { |
|
19 | 19 | $xs = (array) $xs; |
20 | 20 | |
21 | 21 | if (isset($xs[$x])) { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | $args = func_get_args(); |
15 | 15 | |
16 | - $reduce = function (\Closure $fn, array $xs, $initial = null) { |
|
16 | + $reduce = function(\Closure $fn, array $xs, $initial = null) { |
|
17 | 17 | return array_reduce($xs, $fn, $initial); |
18 | 18 | }; |
19 | 19 |
@@ -11,8 +11,8 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $always = function ($x) { |
|
15 | - return function () use ($x) { |
|
14 | + $always = function($x) { |
|
15 | + return function() use ($x) { |
|
16 | 16 | return $x; |
17 | 17 | }; |
18 | 18 | }; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | $args = func_get_args(); |
15 | 15 | |
16 | - $filter = function (\Closure $fn, array $xs) { |
|
16 | + $filter = function(\Closure $fn, array $xs) { |
|
17 | 17 | return array_filter($xs, $fn); |
18 | 18 | }; |
19 | 19 |