Completed
Pull Request — master (#2)
by Amine
01:50
created
src/functions.php 3 patches
Doc Comments   +2 added lines, -10 removed lines patch added patch discarded remove patch
@@ -65,8 +65,6 @@  discard block
 block discarded – undo
65 65
  * ```
66 66
  *
67 67
  * @signature (*... -> a) -> [*] -> a
68
- * @param  callable $fn
69
- * @param  array    $args
70 68
  * @return mixed
71 69
  */
72 70
 function apply() {
@@ -89,7 +87,6 @@  discard block
 block discarded – undo
89 87
  * ```
90 88
  *
91 89
  * @signature (((a, b, ...) -> o), (o -> p), ..., (y -> z)) -> ((a, b, ...) -> z)
92
- * @param  callable $fns...
93 90
  * @return callable
94 91
  */
95 92
 function pipe() {
@@ -137,7 +134,6 @@  discard block
 block discarded – undo
137 134
  * ```
138 135
  *
139 136
  * @signature a -> (* -> a)
140
- * @param  mixed $value
141 137
  * @return callable
142 138
  */
143 139
 function give() {
@@ -166,8 +162,7 @@  discard block
 block discarded – undo
166 162
  * ```
167 163
  *
168 164
  * @signature ((a -> Boolean), ..., (a -> Boolean)) -> (a -> Boolean)
169
- * @param  callable $predicates...
170
- * @return callable
165
+ * @return \Closure
171 166
  */
172 167
 function all() {
173 168
     $predicates = func_get_args();
@@ -198,8 +193,7 @@  discard block
 block discarded – undo
198 193
  * ```
199 194
  *
200 195
  * @signature ((a -> Boolean), ..., (a -> Boolean)) -> (a -> Boolean)
201
- * @param  callable $predicates...
202
- * @return callable
196
+ * @return \Closure
203 197
  */
204 198
 function any() {
205 199
     $predicates = func_get_args();
@@ -227,7 +221,6 @@  discard block
 block discarded – undo
227 221
  * ```
228 222
  *
229 223
  * @signature (* -> ... -> *) -> (* -> ... -> Boolean)
230
- * @param  callable $fn
231 224
  * @return callable
232 225
  */
233 226
 function complement() {
@@ -258,7 +251,6 @@  discard block
 block discarded – undo
258 251
  * ```
259 252
  *
260 253
  * @signature (a -> a -> Boolean) -> (a -> a -> Number)
261
- * @param  callable $fn
262 254
  * @return callable
263 255
  */
264 256
 function comparator() {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
  */
95 95
 function pipe() {
96 96
     $fns = func_get_args();
97
-    if(count($fns) < 1)
97
+    if (count($fns) < 1)
98 98
         return identity();
99
-    return curry(function () use ($fns) {
99
+    return curry(function() use ($fns) {
100 100
         $result = _apply(array_shift($fns), func_get_args());
101 101
         foreach ($fns as $fn) {
102 102
             $result = $fn($result);
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     static $comparator = false;
266 266
     $comparator = $comparator ?: curry(function($fn) {
267 267
         return function($a, $b) use($fn) {
268
-            if ($fn($a, $b)) return -1;
268
+            if ($fn($a, $b)) return - 1;
269 269
             if ($fn($b, $a)) return 1;
270 270
             return 0;
271 271
         };
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,8 +94,9 @@  discard block
 block discarded – undo
94 94
  */
95 95
 function pipe() {
96 96
     $fns = func_get_args();
97
-    if(count($fns) < 1)
98
-        return identity();
97
+    if(count($fns) < 1) {
98
+            return identity();
99
+    }
99 100
     return curry(function () use ($fns) {
100 101
         $result = _apply(array_shift($fns), func_get_args());
101 102
         foreach ($fns as $fn) {
@@ -265,8 +266,12 @@  discard block
 block discarded – undo
265 266
     static $comparator = false;
266 267
     $comparator = $comparator ?: curry(function($fn) {
267 268
         return function($a, $b) use($fn) {
268
-            if ($fn($a, $b)) return -1;
269
-            if ($fn($b, $a)) return 1;
269
+            if ($fn($a, $b)) {
270
+                return -1;
271
+            }
272
+            if ($fn($b, $a)) {
273
+                return 1;
274
+            }
270 275
             return 0;
271 276
         };
272 277
     });
Please login to merge, or discard this patch.
src/list.php 1 patch
Doc Comments   -80 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@  discard block
 block discarded – undo
14 14
  *
15 15
  * @stream
16 16
  * @signature (a -> b) -> [a] -> [b]
17
- * @param  callable $fn
18
- * @param  array $list
19 17
  * @return array
20 18
  */
21 19
 function map() {
@@ -37,8 +35,6 @@  discard block
 block discarded – undo
37 35
  *
38 36
  * @stream
39 37
  * @signature (a -> [b]) -> [a] -> [b]
40
- * @param  callable $fn
41
- * @param  array $list
42 38
  * @return array
43 39
  */
44 40
 function chain() {
@@ -60,8 +56,6 @@  discard block
 block discarded – undo
60 56
  * ```
61 57
  * @stream
62 58
  * @signature (a -> Boolean) -> [a] -> [a]
63
- * @param  callable $fn
64
- * @param  array $list
65 59
  * @return array
66 60
  */
67 61
 function filter() {
@@ -84,9 +78,6 @@  discard block
 block discarded – undo
84 78
  *
85 79
  * @stream
86 80
  * @signature (* -> a -> *) -> * -> [a] -> *
87
- * @param  callable $fn
88
- * @param  mixed $initial
89
- * @param  array $list
90 81
  * @return array
91 82
  */
92 83
 function reduce() {
@@ -112,8 +103,6 @@  discard block
 block discarded – undo
112 103
  *
113 104
  * @stream
114 105
  * @signature (a -> *) -> [a] -> [a]
115
- * @param  callable $fn
116
- * @param  array $list
117 106
  * @return array
118 107
  */
119 108
 function each() {
@@ -140,7 +129,6 @@  discard block
 block discarded – undo
140 129
  * @stream
141 130
  * @signature [a] -> a
142 131
  * @signature String -> String
143
- * @param  array|string $list
144 132
  * @return mixed
145 133
  */
146 134
 function head() {
@@ -168,7 +156,6 @@  discard block
 block discarded – undo
168 156
  * @stream
169 157
  * @signature [a] -> a
170 158
  * @signature String -> String
171
- * @param  array|string $list
172 159
  * @return mixed
173 160
  */
174 161
 function last () {
@@ -197,7 +184,6 @@  discard block
 block discarded – undo
197 184
  * @stream
198 185
  * @signature [a] -> a
199 186
  * @signature String -> String
200
- * @param  array|string $list
201 187
  * @return array
202 188
  */
203 189
 function init () {
@@ -228,7 +214,6 @@  discard block
 block discarded – undo
228 214
  * @stream
229 215
  * @signature [a] -> a
230 216
  * @signature String -> String
231
- * @param  array|string $list
232 217
  * @return array
233 218
  */
234 219
 function tail () {
@@ -256,7 +241,6 @@  discard block
 block discarded – undo
256 241
  * @stream
257 242
  * @signature [a] -> [a]
258 243
  * @signature String -> String
259
- * @param  array|string $list
260 244
  * @return array
261 245
  */
262 246
 function reverse () {
@@ -280,7 +264,6 @@  discard block
 block discarded – undo
280 264
  * @stream
281 265
  * @signature [a] -> Number
282 266
  * @signature String -> Number
283
- * @param  array|string $list
284 267
  * @return int
285 268
  */
286 269
 function length() {
@@ -304,8 +287,6 @@  discard block
 block discarded – undo
304 287
  *
305 288
  * @stream
306 289
  * @signature (a -> Boolean) -> [a] -> Boolean
307
- * @param  callable $predicate
308
- * @param  array $list
309 290
  * @return bool
310 291
  */
311 292
 function allSatisfies() {
@@ -327,8 +308,6 @@  discard block
 block discarded – undo
327 308
  *
328 309
  * @stream
329 310
  * @signature (a -> Boolean) -> [a] -> Boolean
330
- * @param  callable $predicate
331
- * @param  array $list
332 311
  * @return bool
333 312
  */
334 313
 function anySatisfies() {
@@ -350,8 +329,6 @@  discard block
 block discarded – undo
350 329
  * @stream
351 330
  * @signature [*] -> [*] -> [*]
352 331
  * @signature String -> String -> String
353
- * @param  array $list1
354
- * @param  array $list2
355 332
  * @return array
356 333
  */
357 334
 function concat() {
@@ -376,7 +353,6 @@  discard block
 block discarded – undo
376 353
  *
377 354
  * @stream
378 355
  * @signature [[a]] -> [a]
379
- * @param  array $lists
380 356
  * @return array
381 357
  */
382 358
 function concatAll() {
@@ -404,9 +380,6 @@  discard block
 block discarded – undo
404 380
  * @stream
405 381
  * @signature Number -> a -> [a] -> [a]
406 382
  * @signature Number -> String -> String -> String
407
- * @param  int $position
408
- * @param  mixed $item
409
- * @param  array $list
410 383
  * @return array
411 384
  */
412 385
 function insert() {
@@ -434,9 +407,6 @@  discard block
 block discarded – undo
434 407
  * @stream
435 408
  * @signature Number -> [a] -> [a] -> [a]
436 409
  * @signature Number -> String -> String -> String
437
- * @param  int $position
438
- * @param  mixed $items
439
- * @param  array $list
440 410
  * @return array
441 411
  */
442 412
 function insertAll() {
@@ -465,8 +435,6 @@  discard block
 block discarded – undo
465 435
  * @stream
466 436
  * @signature * -> [*] -> [*]
467 437
  * @signature String -> String -> String
468
- * @param  mixed $item
469
- * @param  array $list
470 438
  * @return array
471 439
  */
472 440
 function append() {
@@ -489,8 +457,6 @@  discard block
 block discarded – undo
489 457
  * @stream
490 458
  * @signature a -> [a] -> [a]
491 459
  * @signature String -> String -> String
492
- * @param  mixed $item
493
- * @param  array $list
494 460
  * @return array
495 461
  */
496 462
 function prepend() {
@@ -513,8 +479,6 @@  discard block
 block discarded – undo
513 479
  * @stream
514 480
  * @signature Number -> [a] -> [a]
515 481
  * @signature Number -> String -> String
516
- * @param  int $count
517
- * @param  array $list
518 482
  * @return array
519 483
  */
520 484
 function take() {
@@ -547,8 +511,6 @@  discard block
 block discarded – undo
547 511
  *
548 512
  * @stream
549 513
  * @signature (a -> Boolean) -> [a] -> [a]
550
- * @param  callable $predicate
551
- * @param  array $list
552 514
  * @return array
553 515
  */
554 516
 function takeWhile() {
@@ -574,8 +536,6 @@  discard block
 block discarded – undo
574 536
  *
575 537
  * @stream
576 538
  * @signature (a -> Boolean) -> [a] -> [a]
577
- * @param  callable $predicate
578
- * @param  array $list
579 539
  * @return array
580 540
  */
581 541
 function takeLastWhile() {
@@ -602,8 +562,6 @@  discard block
 block discarded – undo
602 562
  *
603 563
  * @stream
604 564
  * @signature (a -> Boolean) -> [a] -> [a]
605
- * @param  callable $predicate
606
- * @param  array $list
607 565
  * @return array
608 566
  */
609 567
 function takeUntil() {
@@ -625,8 +583,6 @@  discard block
 block discarded – undo
625 583
  *
626 584
  * @stream
627 585
  * @signature (a -> Boolean) -> [a] -> [a]
628
- * @param  callable $predicate
629
- * @param  array $list
630 586
  * @return array
631 587
  */
632 588
 function takeLastUntil() {
@@ -654,8 +610,6 @@  discard block
 block discarded – undo
654 610
  * @stream
655 611
  * @signature Number -> [a] -> [a]
656 612
  * @signature Number -> String -> String
657
- * @param  int $count
658
- * @param  array $list
659 613
  * @return array
660 614
  */
661 615
 function remove() {
@@ -683,8 +637,6 @@  discard block
 block discarded – undo
683 637
  *
684 638
  * @stream
685 639
  * @signature (a -> Boolean) -> [a] -> [a]
686
- * @param  callable $predicate
687
- * @param  array $list
688 640
  * @return array
689 641
  */
690 642
 function removeWhile() {
@@ -706,8 +658,6 @@  discard block
 block discarded – undo
706 658
  *
707 659
  * @stream
708 660
  * @signature (a -> Boolean) -> [a] -> [a]
709
- * @param  callable $predicate
710
- * @param  array $list
711 661
  * @return array
712 662
  */
713 663
 function removeLastWhile() {
@@ -731,8 +681,6 @@  discard block
 block discarded – undo
731 681
  *
732 682
  * @stream
733 683
  * @signature (a -> Boolean) -> [a] -> [a]
734
- * @param  callable $predicate
735
- * @param  array $list
736 684
  * @return array
737 685
  */
738 686
 function removeUntil() {
@@ -755,8 +703,6 @@  discard block
 block discarded – undo
755 703
  *
756 704
  * @stream
757 705
  * @signature (a -> Boolean) -> [a] -> [a]
758
- * @param  callable $predicate
759
- * @param  array $list
760 706
  * @return array
761 707
  */
762 708
 function removeLastUntil() {
@@ -776,7 +722,6 @@  discard block
 block discarded – undo
776 722
  *
777 723
  * @stream
778 724
  * @signature [(k, v)] -> {k: v}
779
- * @param  array $pairs
780 725
  * @return stdClass
781 726
  */
782 727
 function fromPairs() {
@@ -805,8 +750,6 @@  discard block
 block discarded – undo
805 750
  * @stream
806 751
  * @signature Number -> [a] -> [[a]]
807 752
  * @signature Number -> String -> [String]
808
- * @param  int $size
809
- * @param  array $list
810 753
  * @return array
811 754
  */
812 755
 function slices() {
@@ -834,8 +777,6 @@  discard block
 block discarded – undo
834 777
  * @stream
835 778
  * @signature a -> [a] -> Boolean
836 779
  * @signature String -> String -> Boolean
837
- * @param  mixed $item
838
- * @param  array|string $list
839 780
  * @return bool
840 781
  */
841 782
 function contains() {
@@ -859,8 +800,6 @@  discard block
 block discarded – undo
859 800
  * @stream
860 801
  * @signature (a -> Boolean) -> [a] -> Maybe(Number)
861 802
  * @signature (v -> Boolean) -> {k: v} -> Maybe(k)
862
- * @param  callable $predicate
863
- * @param  array $list
864 803
  * @return mixed
865 804
  */
866 805
 function findIndex() {
@@ -888,8 +827,6 @@  discard block
 block discarded – undo
888 827
  * @stream
889 828
  * @signature (a -> Boolean) -> [a] -> Maybe(Number)
890 829
  * @signature (v -> Boolean) -> {k: v} -> Maybe(k)
891
- * @param  callable $predicate
892
- * @param  array $list
893 830
  * @return mixed
894 831
  */
895 832
 function findLastIndex() {
@@ -915,8 +852,6 @@  discard block
 block discarded – undo
915 852
  *
916 853
  * @stream
917 854
  * @signature (a -> Boolean) -> [a] -> Maybe(a)
918
- * @param  callable $predicate
919
- * @param  array $list
920 855
  * @return mixed
921 856
  */
922 857
 function find() {
@@ -938,8 +873,6 @@  discard block
 block discarded – undo
938 873
  *
939 874
  * @stream
940 875
  * @signature (a -> Boolean) -> [a] -> Maybe(a)
941
- * @param  callable $predicate
942
- * @param  array $list
943 876
  * @return mixed
944 877
  */
945 878
 function findLast() {
@@ -970,8 +903,6 @@  discard block
 block discarded – undo
970 903
  * @signature a -> [a] -> Number
971 904
  * @signature v -> {k: v} -> Maybe(k)
972 905
  * @signature String -> String -> Number
973
- * @param  mixed $item
974
- * @param  array $list
975 906
  * @return int
976 907
  */
977 908
 function indexOf() {
@@ -1003,8 +934,6 @@  discard block
 block discarded – undo
1003 934
  * @stream
1004 935
  * @signature a -> [a] -> Number
1005 936
  * @signature String -> String -> Number
1006
- * @param  mixed $item
1007
- * @param  array $list
1008 937
  * @return int
1009 938
  */
1010 939
 function lastIndexOf() {
@@ -1033,8 +962,6 @@  discard block
 block discarded – undo
1033 962
  *
1034 963
  * @stream
1035 964
  * @signature (a -> a -> Boolean) -> [a] -> [a]
1036
- * @param  callable $areEqual
1037
- * @param  array $list
1038 965
  * @return array
1039 966
  */
1040 967
 function uniqueBy() {
@@ -1065,7 +992,6 @@  discard block
 block discarded – undo
1065 992
  *
1066 993
  * @stream
1067 994
  * @signature [a] -> [a]
1068
- * @param  array $list
1069 995
  * @return array
1070 996
  */
1071 997
 function unique() {
@@ -1098,8 +1024,6 @@  discard block
 block discarded – undo
1098 1024
  *
1099 1025
  * @stream
1100 1026
  * @signature (a -> String) -> [a] -> {String: a}
1101
- * @param  callable $fn
1102
- * @param  array $list
1103 1027
  * @return array
1104 1028
  */
1105 1029
 function groupBy() {
@@ -1128,8 +1052,6 @@  discard block
 block discarded – undo
1128 1052
  *
1129 1053
  * @stream
1130 1054
  * @signature [a] -> [b] -> [[a,b]]
1131
- * @param  array $list1
1132
- * @param  array $list2
1133 1055
  * @return array
1134 1056
  */
1135 1057
 function pairsFrom() {
@@ -1171,8 +1093,6 @@  discard block
 block discarded – undo
1171 1093
  *
1172 1094
  * @stream
1173 1095
  * @signature (a -> a -> Boolean) -> [a] -> [a]
1174
- * @param  callable $compare
1175
- * @param  array $list
1176 1096
  * @return array
1177 1097
  */
1178 1098
 function sort() {
Please login to merge, or discard this patch.
src/common.php 1 patch
Braces   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,9 +33,15 @@  discard block
 block discarded – undo
33 33
 function type() {
34 34
     static $type = false;
35 35
     $type = $type ?: curry(function($data) {
36
-        if ($data instanceof Error) return 'Error';
37
-        if ($data instanceof Stream) return 'Stream';
38
-        if (is_callable($data)) return 'Function';
36
+        if ($data instanceof Error) {
37
+            return 'Error';
38
+        }
39
+        if ($data instanceof Stream) {
40
+            return 'Stream';
41
+        }
42
+        if (is_callable($data)) {
43
+            return 'Function';
44
+        }
39 45
         switch (gettype($data)) {
40 46
             case 'boolean':
41 47
                 return 'Boolean';
@@ -49,8 +55,9 @@  discard block
 block discarded – undo
49 55
             case 'resource':
50 56
                 return 'Resource';
51 57
             case 'array':
52
-                if (allSatisfies('is_numeric', keys($data)))
53
-                    return 'List';
58
+                if (allSatisfies('is_numeric', keys($data))) {
59
+                                    return 'List';
60
+                }
54 61
                 return 'Array';
55 62
             case 'object':
56 63
                 return 'Object';
Please login to merge, or discard this patch.
src/Internal/_stream_operations.php 1 patch
Indentation   +119 added lines, -119 removed lines patch added patch discarded remove patch
@@ -3,124 +3,124 @@
 block discarded – undo
3 3
 use Tarsana\Functional as F;
4 4
 
5 5
 return F\map(F\apply(F\_f('_stream_operation')), [
6
-	['then', 'Function -> Any -> Any', F\_f('_stream_then')],
7
-	['and', 'Boolean -> Boolean -> Boolean', F\and_()],
8
-	['or', 'Boolean -> Boolean -> Boolean', F\or_()],
9
-	['not', 'Boolean -> Boolean', F\not()],
10
-	['eq', 'Any -> Any -> Boolean', F\eq()],
11
-	['notEq', 'Any -> Any -> Boolean', F\notEq()],
12
-	['eqq', 'Any -> Any -> Boolean', F\eqq()],
13
-	['notEqq', 'Any -> Any -> Boolean', F\notEqq()],
14
-	['equals', 'Any -> Any -> Boolean', F\equals()],
15
-	['equalBy', 'Function -> Any -> Any -> Boolean', F\equalBy()],
16
-	['lt', 'Any -> Any -> Boolean', F\lt()],
17
-	['lte', 'Any -> Any -> Boolean', F\lte()],
18
-	['gt', 'Any -> Any -> Boolean', F\gt()],
19
-	['gte', 'Any -> Any -> Boolean', F\gte()],
20
-	['is', 'String -> Any -> Boolean', F\is()],
21
-	['toString', 'Any -> String', F\toString()],
22
-	['attributes', 'Object|Array -> Object|Array', F\attributes()],
23
-	['keys', 'List -> List', F\keys()],
24
-	['keys', 'Object|Array -> List', F\keys()],
25
-	['values', 'List -> List', F\values()],
26
-	['values', 'Object|Array -> List', F\values()],
27
-	['has', 'Any -> Object|Array -> Boolean', F\has()],
28
-	['get', 'Any -> Object|Array -> Any', F\get()],
29
-	['getPath', 'List -> Object|Array -> Any', F\getPath()],
30
-	['set', 'Any -> Any -> Object|Array -> Object|Array', F\set()],
31
-	['update', 'Any -> Function -> Object|Array -> Object|Array', F\update()],
32
-	['satisfies', 'Function -> Any -> Object|Array -> Boolean', F\satisfies()],
33
-	['satisfiesAll', 'Object|Array -> Object|Array -> Boolean', F\satisfiesAll()],
34
-	['satisfiesAny', 'Object|Array -> Object|Array -> Boolean', F\satisfiesAny()],
35
-	['toPairs', 'Object|Array -> List', F\toPairs()],
36
-	['split', 'String -> String -> List', F\split()],
37
-	['join', 'String -> List -> String', F\join()],
38
-	['replace', 'String|List -> String|List -> String -> String', F\replace()],
39
-	['regReplace', 'String -> String -> String -> String', F\regReplace()],
40
-	['upperCase', 'String -> String', F\upperCase()],
41
-	['lowerCase', 'String -> String', F\lowerCase()],
42
-	['camelCase', 'String -> String', F\camelCase()],
43
-	['snakeCase', 'String -> String -> String', F\snakeCase()],
44
-	['startsWith', 'String -> String -> Boolean', F\startsWith()],
45
-	['endsWith', 'String -> String -> Boolean', F\endsWith()],
46
-	['test', 'String -> String -> Boolean', F\test()],
47
-	['match', 'String -> String -> List', F\match()],
48
-	['occurences', 'String -> String -> Number', F\occurences()],
49
-	['chunks', 'String -> String -> String -> List', F\chunks()],
50
-	['map', 'Function -> List -> List', F\map()],
51
-	['chain', 'Function -> List -> List', F\chain()],
52
-	['filter', 'Function -> List -> List', F\filter()],
53
-	['reduce', 'Function -> Any -> List -> Any', F\reduce()],
54
-	['each', 'Function -> List -> List', F\each()],
55
-	['head', 'List -> Any', F\head()],
56
-	['head', 'String -> String', F\head()],
57
-	['last', 'List -> Any', F\last()],
58
-	['last', 'String -> String', F\last()],
59
-	['init', 'List -> Any', F\init()],
60
-	['init', 'String -> String', F\init()],
61
-	['tail', 'List -> Any', F\tail()],
62
-	['tail', 'String -> String', F\tail()],
63
-	['reverse', 'List -> List', F\reverse()],
64
-	['reverse', 'String -> String', F\reverse()],
65
-	['length', 'List -> Number', F\length()],
66
-	['length', 'String -> Number', F\length()],
67
-	['allSatisfies', 'Function -> List -> Boolean', F\allSatisfies()],
68
-	['anySatisfies', 'Function -> List -> Boolean', F\anySatisfies()],
69
-	['concat', 'List -> List -> List', F\concat()],
70
-	['concat', 'String -> String -> String', F\concat()],
71
-	['concatAll', 'List -> List', F\concatAll()],
72
-	['insert', 'Number -> Any -> List -> List', F\insert()],
73
-	['insert', 'Number -> String -> String -> String', F\insert()],
74
-	['insertAll', 'Number -> List -> List -> List', F\insertAll()],
75
-	['insertAll', 'Number -> String -> String -> String', F\insertAll()],
76
-	['append', 'Any -> List -> List', F\append()],
77
-	['append', 'String -> String -> String', F\append()],
78
-	['prepend', 'Any -> List -> List', F\prepend()],
79
-	['prepend', 'String -> String -> String', F\prepend()],
80
-	['take', 'Number -> List -> List', F\take()],
81
-	['take', 'Number -> String -> String', F\take()],
82
-	['takeWhile', 'Function -> List -> List', F\takeWhile()],
83
-	['takeLastWhile', 'Function -> List -> List', F\takeLastWhile()],
84
-	['takeUntil', 'Function -> List -> List', F\takeUntil()],
85
-	['takeLastUntil', 'Function -> List -> List', F\takeLastUntil()],
86
-	['remove', 'Number -> List -> List', F\remove()],
87
-	['remove', 'Number -> String -> String', F\remove()],
88
-	['removeWhile', 'Function -> List -> List', F\removeWhile()],
89
-	['removeLastWhile', 'Function -> List -> List', F\removeLastWhile()],
90
-	['removeUntil', 'Function -> List -> List', F\removeUntil()],
91
-	['removeLastUntil', 'Function -> List -> List', F\removeLastUntil()],
92
-	['fromPairs', 'List -> Object|Array', F\fromPairs()],
93
-	['slices', 'Number -> List -> List', F\slices()],
94
-	['slices', 'Number -> String -> List', F\slices()],
95
-	['contains', 'Any -> List -> Boolean', F\contains()],
96
-	['contains', 'String -> String -> Boolean', F\contains()],
97
-	['findIndex', 'Function -> List -> Number|Null', F\findIndex()],
98
-	['findIndex', 'Function -> Object|Array -> Any', F\findIndex()],
99
-	['findLastIndex', 'Function -> List -> Number|Null', F\findLastIndex()],
100
-	['findLastIndex', 'Function -> Object|Array -> Any', F\findLastIndex()],
101
-	['find', 'Function -> List -> Any', F\find()],
102
-	['findLast', 'Function -> List -> Any', F\findLast()],
103
-	['indexOf', 'Any -> List -> Number', F\indexOf()],
104
-	['indexOf', 'Any -> Object|Array -> Any', F\indexOf()],
105
-	['indexOf', 'String -> String -> Number', F\indexOf()],
106
-	['lastIndexOf', 'Any -> List -> Number', F\lastIndexOf()],
107
-	['lastIndexOf', 'String -> String -> Number', F\lastIndexOf()],
108
-	['uniqueBy', 'Function -> List -> List', F\uniqueBy()],
109
-	['unique', 'List -> List', F\unique()],
110
-	['groupBy', 'Function -> List -> Object|Array', F\groupBy()],
111
-	['pairsFrom', 'List -> List -> List', F\pairsFrom()],
112
-	['sort', 'Function -> List -> List', F\sort()],
113
-	['plus', 'Number -> Number -> Number', F\plus()],
114
-	['minus', 'Number -> Number -> Number', F\minus()],
115
-	['negate', 'Number -> Number', F\negate()],
116
-	['multiply', 'Number -> Number -> Number', F\multiply()],
117
-	['divide', 'Number -> Number -> Number', F\divide()],
118
-	['modulo', 'Number -> Number -> Number', F\modulo()],
119
-	['sum', 'List -> Number', F\sum()],
120
-	['product', 'List -> Number', F\product()],
121
-	['min', 'Number -> Number -> Number', F\min()],
122
-	['minBy', 'Function -> Any -> Any -> Any', F\minBy()],
123
-	['max', 'Number -> Number -> Number', F\max()],
124
-	['maxBy', 'Function -> Any -> Any -> Any', F\maxBy()],
6
+    ['then', 'Function -> Any -> Any', F\_f('_stream_then')],
7
+    ['and', 'Boolean -> Boolean -> Boolean', F\and_()],
8
+    ['or', 'Boolean -> Boolean -> Boolean', F\or_()],
9
+    ['not', 'Boolean -> Boolean', F\not()],
10
+    ['eq', 'Any -> Any -> Boolean', F\eq()],
11
+    ['notEq', 'Any -> Any -> Boolean', F\notEq()],
12
+    ['eqq', 'Any -> Any -> Boolean', F\eqq()],
13
+    ['notEqq', 'Any -> Any -> Boolean', F\notEqq()],
14
+    ['equals', 'Any -> Any -> Boolean', F\equals()],
15
+    ['equalBy', 'Function -> Any -> Any -> Boolean', F\equalBy()],
16
+    ['lt', 'Any -> Any -> Boolean', F\lt()],
17
+    ['lte', 'Any -> Any -> Boolean', F\lte()],
18
+    ['gt', 'Any -> Any -> Boolean', F\gt()],
19
+    ['gte', 'Any -> Any -> Boolean', F\gte()],
20
+    ['is', 'String -> Any -> Boolean', F\is()],
21
+    ['toString', 'Any -> String', F\toString()],
22
+    ['attributes', 'Object|Array -> Object|Array', F\attributes()],
23
+    ['keys', 'List -> List', F\keys()],
24
+    ['keys', 'Object|Array -> List', F\keys()],
25
+    ['values', 'List -> List', F\values()],
26
+    ['values', 'Object|Array -> List', F\values()],
27
+    ['has', 'Any -> Object|Array -> Boolean', F\has()],
28
+    ['get', 'Any -> Object|Array -> Any', F\get()],
29
+    ['getPath', 'List -> Object|Array -> Any', F\getPath()],
30
+    ['set', 'Any -> Any -> Object|Array -> Object|Array', F\set()],
31
+    ['update', 'Any -> Function -> Object|Array -> Object|Array', F\update()],
32
+    ['satisfies', 'Function -> Any -> Object|Array -> Boolean', F\satisfies()],
33
+    ['satisfiesAll', 'Object|Array -> Object|Array -> Boolean', F\satisfiesAll()],
34
+    ['satisfiesAny', 'Object|Array -> Object|Array -> Boolean', F\satisfiesAny()],
35
+    ['toPairs', 'Object|Array -> List', F\toPairs()],
36
+    ['split', 'String -> String -> List', F\split()],
37
+    ['join', 'String -> List -> String', F\join()],
38
+    ['replace', 'String|List -> String|List -> String -> String', F\replace()],
39
+    ['regReplace', 'String -> String -> String -> String', F\regReplace()],
40
+    ['upperCase', 'String -> String', F\upperCase()],
41
+    ['lowerCase', 'String -> String', F\lowerCase()],
42
+    ['camelCase', 'String -> String', F\camelCase()],
43
+    ['snakeCase', 'String -> String -> String', F\snakeCase()],
44
+    ['startsWith', 'String -> String -> Boolean', F\startsWith()],
45
+    ['endsWith', 'String -> String -> Boolean', F\endsWith()],
46
+    ['test', 'String -> String -> Boolean', F\test()],
47
+    ['match', 'String -> String -> List', F\match()],
48
+    ['occurences', 'String -> String -> Number', F\occurences()],
49
+    ['chunks', 'String -> String -> String -> List', F\chunks()],
50
+    ['map', 'Function -> List -> List', F\map()],
51
+    ['chain', 'Function -> List -> List', F\chain()],
52
+    ['filter', 'Function -> List -> List', F\filter()],
53
+    ['reduce', 'Function -> Any -> List -> Any', F\reduce()],
54
+    ['each', 'Function -> List -> List', F\each()],
55
+    ['head', 'List -> Any', F\head()],
56
+    ['head', 'String -> String', F\head()],
57
+    ['last', 'List -> Any', F\last()],
58
+    ['last', 'String -> String', F\last()],
59
+    ['init', 'List -> Any', F\init()],
60
+    ['init', 'String -> String', F\init()],
61
+    ['tail', 'List -> Any', F\tail()],
62
+    ['tail', 'String -> String', F\tail()],
63
+    ['reverse', 'List -> List', F\reverse()],
64
+    ['reverse', 'String -> String', F\reverse()],
65
+    ['length', 'List -> Number', F\length()],
66
+    ['length', 'String -> Number', F\length()],
67
+    ['allSatisfies', 'Function -> List -> Boolean', F\allSatisfies()],
68
+    ['anySatisfies', 'Function -> List -> Boolean', F\anySatisfies()],
69
+    ['concat', 'List -> List -> List', F\concat()],
70
+    ['concat', 'String -> String -> String', F\concat()],
71
+    ['concatAll', 'List -> List', F\concatAll()],
72
+    ['insert', 'Number -> Any -> List -> List', F\insert()],
73
+    ['insert', 'Number -> String -> String -> String', F\insert()],
74
+    ['insertAll', 'Number -> List -> List -> List', F\insertAll()],
75
+    ['insertAll', 'Number -> String -> String -> String', F\insertAll()],
76
+    ['append', 'Any -> List -> List', F\append()],
77
+    ['append', 'String -> String -> String', F\append()],
78
+    ['prepend', 'Any -> List -> List', F\prepend()],
79
+    ['prepend', 'String -> String -> String', F\prepend()],
80
+    ['take', 'Number -> List -> List', F\take()],
81
+    ['take', 'Number -> String -> String', F\take()],
82
+    ['takeWhile', 'Function -> List -> List', F\takeWhile()],
83
+    ['takeLastWhile', 'Function -> List -> List', F\takeLastWhile()],
84
+    ['takeUntil', 'Function -> List -> List', F\takeUntil()],
85
+    ['takeLastUntil', 'Function -> List -> List', F\takeLastUntil()],
86
+    ['remove', 'Number -> List -> List', F\remove()],
87
+    ['remove', 'Number -> String -> String', F\remove()],
88
+    ['removeWhile', 'Function -> List -> List', F\removeWhile()],
89
+    ['removeLastWhile', 'Function -> List -> List', F\removeLastWhile()],
90
+    ['removeUntil', 'Function -> List -> List', F\removeUntil()],
91
+    ['removeLastUntil', 'Function -> List -> List', F\removeLastUntil()],
92
+    ['fromPairs', 'List -> Object|Array', F\fromPairs()],
93
+    ['slices', 'Number -> List -> List', F\slices()],
94
+    ['slices', 'Number -> String -> List', F\slices()],
95
+    ['contains', 'Any -> List -> Boolean', F\contains()],
96
+    ['contains', 'String -> String -> Boolean', F\contains()],
97
+    ['findIndex', 'Function -> List -> Number|Null', F\findIndex()],
98
+    ['findIndex', 'Function -> Object|Array -> Any', F\findIndex()],
99
+    ['findLastIndex', 'Function -> List -> Number|Null', F\findLastIndex()],
100
+    ['findLastIndex', 'Function -> Object|Array -> Any', F\findLastIndex()],
101
+    ['find', 'Function -> List -> Any', F\find()],
102
+    ['findLast', 'Function -> List -> Any', F\findLast()],
103
+    ['indexOf', 'Any -> List -> Number', F\indexOf()],
104
+    ['indexOf', 'Any -> Object|Array -> Any', F\indexOf()],
105
+    ['indexOf', 'String -> String -> Number', F\indexOf()],
106
+    ['lastIndexOf', 'Any -> List -> Number', F\lastIndexOf()],
107
+    ['lastIndexOf', 'String -> String -> Number', F\lastIndexOf()],
108
+    ['uniqueBy', 'Function -> List -> List', F\uniqueBy()],
109
+    ['unique', 'List -> List', F\unique()],
110
+    ['groupBy', 'Function -> List -> Object|Array', F\groupBy()],
111
+    ['pairsFrom', 'List -> List -> List', F\pairsFrom()],
112
+    ['sort', 'Function -> List -> List', F\sort()],
113
+    ['plus', 'Number -> Number -> Number', F\plus()],
114
+    ['minus', 'Number -> Number -> Number', F\minus()],
115
+    ['negate', 'Number -> Number', F\negate()],
116
+    ['multiply', 'Number -> Number -> Number', F\multiply()],
117
+    ['divide', 'Number -> Number -> Number', F\divide()],
118
+    ['modulo', 'Number -> Number -> Number', F\modulo()],
119
+    ['sum', 'List -> Number', F\sum()],
120
+    ['product', 'List -> Number', F\product()],
121
+    ['min', 'Number -> Number -> Number', F\min()],
122
+    ['minBy', 'Function -> Any -> Any -> Any', F\minBy()],
123
+    ['max', 'Number -> Number -> Number', F\max()],
124
+    ['maxBy', 'Function -> Any -> Any -> Any', F\maxBy()],
125 125
 
126 126
 ]);
Please login to merge, or discard this patch.