@@ -634,8 +634,6 @@ discard block |
||
| 634 | 634 | * Gets an element of the stream methods list. |
| 635 | 635 | * |
| 636 | 636 | * @signature String -> Block -> String |
| 637 | - * @param string $moduleName |
|
| 638 | - * @param object $block |
|
| 639 | 637 | * @return string |
| 640 | 638 | */ |
| 641 | 639 | function stream_method_link() { |
@@ -661,7 +659,6 @@ discard block |
||
| 661 | 659 | * Dump a variable and returns it. |
| 662 | 660 | * |
| 663 | 661 | * @signature a -> a |
| 664 | - * @param mixed $something |
|
| 665 | 662 | * @return mixed |
| 666 | 663 | */ |
| 667 | 664 | function log() { |
@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | * ``` |
| 27 | 27 | * |
| 28 | 28 | * @signature * -> String |
| 29 | - * @param mixed $data |
|
| 30 | 29 | * @return string |
| 31 | 30 | */ |
| 32 | 31 | function type() { |
@@ -73,8 +72,6 @@ discard block |
||
| 73 | 72 | * |
| 74 | 73 | * @stream |
| 75 | 74 | * @signature String -> * -> Boolean |
| 76 | - * @param string $type |
|
| 77 | - * @param mixed $data |
|
| 78 | 75 | * @return boolean |
| 79 | 76 | */ |
| 80 | 77 | function is() { |
@@ -109,7 +106,6 @@ discard block |
||
| 109 | 106 | * |
| 110 | 107 | * @stream |
| 111 | 108 | * @signature * -> String |
| 112 | - * @param mixed $something |
|
| 113 | 109 | * @return string |
| 114 | 110 | */ |
| 115 | 111 | function toString () { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * Returns supported types in signatures. |
| 41 | 41 | * |
| 42 | 42 | * @signature List |
| 43 | - * @return array |
|
| 43 | + * @return string[] |
|
| 44 | 44 | */ |
| 45 | 45 | function _stream_types() { |
| 46 | 46 | return [ |
@@ -126,7 +126,6 @@ discard block |
||
| 126 | 126 | * @signature String -> String -> Maybe(Function) -> Operation |
| 127 | 127 | * @param string $name |
| 128 | 128 | * @param string $signature |
| 129 | - * @param callable $fn |
|
| 130 | 129 | * @return array |
| 131 | 130 | */ |
| 132 | 131 | function _stream_operation($name, $signature, $callable = null) { |
@@ -190,8 +189,6 @@ discard block |
||
| 190 | 189 | * F\_stream_ensure_type('List -> Bar', 'Bar'); // throws "Stream: invalid signature 'List -> Bar' it should follow the syntax 'TypeArg1 -> TypeArg2 -> ... -> ReturnType' and types to use are Boolean, Number, String, Resource, Function, List, Array, Object, Any" |
| 191 | 190 | * ``` |
| 192 | 191 | * @signature String -> String -> String |
| 193 | - * @param string $signature |
|
| 194 | - * @param string $type |
|
| 195 | 192 | * @return string |
| 196 | 193 | */ |
| 197 | 194 | function _stream_ensure_type() { |
@@ -491,8 +488,6 @@ discard block |
||
| 491 | 488 | * ``` |
| 492 | 489 | * |
| 493 | 490 | * @signature [String] -> Operation -> Boolean |
| 494 | - * @param array $argsTypes |
|
| 495 | - * @param array $operation |
|
| 496 | 491 | * @return bool |
| 497 | 492 | */ |
| 498 | 493 | function _stream_operation_is_applicable() { |
@@ -14,8 +14,6 @@ discard block |
||
| 14 | 14 | * |
| 15 | 15 | * @stream |
| 16 | 16 | * @signature Number -> Number -> Number |
| 17 | - * @param int|float $x |
|
| 18 | - * @param int|float $y |
|
| 19 | 17 | * @return int|float |
| 20 | 18 | */ |
| 21 | 19 | function plus() { |
@@ -35,8 +33,6 @@ discard block |
||
| 35 | 33 | * |
| 36 | 34 | * @stream |
| 37 | 35 | * @signature Number -> Number -> Number |
| 38 | - * @param int|float $x |
|
| 39 | - * @param int|float $y |
|
| 40 | 36 | * @return int|float |
| 41 | 37 | */ |
| 42 | 38 | function minus() { |
@@ -57,7 +53,6 @@ discard block |
||
| 57 | 53 | * |
| 58 | 54 | * @stream |
| 59 | 55 | * @signature Number -> Number |
| 60 | - * @param int|float $x |
|
| 61 | 56 | * @return int|float |
| 62 | 57 | */ |
| 63 | 58 | function negate() { |
@@ -78,8 +73,6 @@ discard block |
||
| 78 | 73 | * |
| 79 | 74 | * @stream |
| 80 | 75 | * @signature Number -> Number -> Number |
| 81 | - * @param int|float $x |
|
| 82 | - * @param int|float $y |
|
| 83 | 76 | * @return int|float |
| 84 | 77 | */ |
| 85 | 78 | function multiply() { |
@@ -99,8 +92,6 @@ discard block |
||
| 99 | 92 | * |
| 100 | 93 | * @stream |
| 101 | 94 | * @signature Number -> Number -> Number |
| 102 | - * @param int|float $x |
|
| 103 | - * @param int|float $y |
|
| 104 | 95 | * @return int|float |
| 105 | 96 | */ |
| 106 | 97 | function divide() { |
@@ -120,8 +111,6 @@ discard block |
||
| 120 | 111 | * |
| 121 | 112 | * @stream |
| 122 | 113 | * @signature Number -> Number -> Number |
| 123 | - * @param int|float $x |
|
| 124 | - * @param int|float $y |
|
| 125 | 114 | * @return int|float |
| 126 | 115 | */ |
| 127 | 116 | function modulo() { |
@@ -142,7 +131,6 @@ discard block |
||
| 142 | 131 | * |
| 143 | 132 | * @stream |
| 144 | 133 | * @signature [Number] -> Number |
| 145 | - * @param array $numbers |
|
| 146 | 134 | * @return int|float |
| 147 | 135 | */ |
| 148 | 136 | function sum() { |
@@ -163,7 +151,6 @@ discard block |
||
| 163 | 151 | * |
| 164 | 152 | * @stream |
| 165 | 153 | * @signature [Number] -> Number |
| 166 | - * @param array $numbers |
|
| 167 | 154 | * @return int|float |
| 168 | 155 | */ |
| 169 | 156 | function product() { |
@@ -184,8 +171,6 @@ discard block |
||
| 184 | 171 | * |
| 185 | 172 | * @stream |
| 186 | 173 | * @signature Number -> Number -> Number |
| 187 | - * @param number $a |
|
| 188 | - * @param number $b |
|
| 189 | 174 | * @return number |
| 190 | 175 | */ |
| 191 | 176 | function min() { |
@@ -206,9 +191,6 @@ discard block |
||
| 206 | 191 | * |
| 207 | 192 | * @stream |
| 208 | 193 | * @signature (a -> Number) -> a -> a -> a |
| 209 | - * @param callable $fn |
|
| 210 | - * @param mixed $a |
|
| 211 | - * @param mixed $b |
|
| 212 | 194 | * @return mixed |
| 213 | 195 | */ |
| 214 | 196 | function minBy() { |
@@ -229,8 +211,6 @@ discard block |
||
| 229 | 211 | * |
| 230 | 212 | * @stream |
| 231 | 213 | * @signature Number -> Number -> Number |
| 232 | - * @param number $a |
|
| 233 | - * @param number $b |
|
| 234 | 214 | * @return number |
| 235 | 215 | */ |
| 236 | 216 | function max() { |
@@ -251,9 +231,6 @@ discard block |
||
| 251 | 231 | * |
| 252 | 232 | * @stream |
| 253 | 233 | * @signature (a -> Number) -> a -> a -> a |
| 254 | - * @param callable $fn |
|
| 255 | - * @param mixed $a |
|
| 256 | - * @param mixed $b |
|
| 257 | 234 | * @return mixed |
| 258 | 235 | */ |
| 259 | 236 | function maxBy() { |
@@ -14,8 +14,6 @@ discard block |
||
| 14 | 14 | * |
| 15 | 15 | * @stream |
| 16 | 16 | * @signature String -> String -> [String] |
| 17 | - * @param string $delimiter |
|
| 18 | - * @param string $string |
|
| 19 | 17 | * @return array |
| 20 | 18 | */ |
| 21 | 19 | function split() { |
@@ -34,8 +32,6 @@ discard block |
||
| 34 | 32 | * |
| 35 | 33 | * @stream |
| 36 | 34 | * @signature String -> [String] -> String |
| 37 | - * @param string $glue |
|
| 38 | - * @param array $pieces |
|
| 39 | 35 | * @return string |
| 40 | 36 | */ |
| 41 | 37 | function join() { |
@@ -59,9 +55,6 @@ discard block |
||
| 59 | 55 | * |
| 60 | 56 | * @stream |
| 61 | 57 | * @signature String|[String] -> String|[String] -> String -> String |
| 62 | - * @param string $search |
|
| 63 | - * @param string $replacement |
|
| 64 | - * @param string $string |
|
| 65 | 58 | * @return string |
| 66 | 59 | */ |
| 67 | 60 | function replace() { |
@@ -81,9 +74,6 @@ discard block |
||
| 81 | 74 | * |
| 82 | 75 | * @stream |
| 83 | 76 | * @signature String -> String -> String -> String |
| 84 | - * @param string $pattern |
|
| 85 | - * @param string $replacement |
|
| 86 | - * @param string $string |
|
| 87 | 77 | * @return string |
| 88 | 78 | */ |
| 89 | 79 | function regReplace() { |
@@ -101,7 +91,6 @@ discard block |
||
| 101 | 91 | * |
| 102 | 92 | * @stream |
| 103 | 93 | * @signature String -> String |
| 104 | - * @param string $string |
|
| 105 | 94 | * @return string |
| 106 | 95 | */ |
| 107 | 96 | function upperCase() { |
@@ -119,7 +108,6 @@ discard block |
||
| 119 | 108 | * |
| 120 | 109 | * @stream |
| 121 | 110 | * @signature String -> String |
| 122 | - * @param string $string |
|
| 123 | 111 | * @return string |
| 124 | 112 | */ |
| 125 | 113 | function lowerCase() { |
@@ -137,7 +125,6 @@ discard block |
||
| 137 | 125 | * |
| 138 | 126 | * @stream |
| 139 | 127 | * @signature String -> String |
| 140 | - * @param string $string |
|
| 141 | 128 | * @return string |
| 142 | 129 | */ |
| 143 | 130 | function camelCase() { |
@@ -164,8 +151,6 @@ discard block |
||
| 164 | 151 | * |
| 165 | 152 | * @stream |
| 166 | 153 | * @signature String -> String -> String |
| 167 | - * @param string $delimiter |
|
| 168 | - * @param string $string |
|
| 169 | 154 | * @return string |
| 170 | 155 | */ |
| 171 | 156 | function snakeCase() { |
@@ -194,8 +179,6 @@ discard block |
||
| 194 | 179 | * |
| 195 | 180 | * @stream |
| 196 | 181 | * @signature String -> String -> Boolean |
| 197 | - * @param string $token |
|
| 198 | - * @param string $string |
|
| 199 | 182 | * @return bool |
| 200 | 183 | */ |
| 201 | 184 | function startsWith() { |
@@ -220,8 +203,6 @@ discard block |
||
| 220 | 203 | * |
| 221 | 204 | * @stream |
| 222 | 205 | * @signature String -> String -> Boolean |
| 223 | - * @param string $token |
|
| 224 | - * @param string $string |
|
| 225 | 206 | * @return bool |
| 226 | 207 | */ |
| 227 | 208 | function endsWith() { |
@@ -246,8 +227,6 @@ discard block |
||
| 246 | 227 | * |
| 247 | 228 | * @stream |
| 248 | 229 | * @signature String -> String -> Boolean |
| 249 | - * @param string $pattern |
|
| 250 | - * @param string $string |
|
| 251 | 230 | * @return bool |
| 252 | 231 | */ |
| 253 | 232 | function test() { |
@@ -270,8 +249,6 @@ discard block |
||
| 270 | 249 | * |
| 271 | 250 | * @stream |
| 272 | 251 | * @signature String -> String -> [String] |
| 273 | - * @param string $pattern |
|
| 274 | - * @param string $string |
|
| 275 | 252 | * @return array |
| 276 | 253 | */ |
| 277 | 254 | function match() { |
@@ -295,8 +272,6 @@ discard block |
||
| 295 | 272 | * |
| 296 | 273 | * @stream |
| 297 | 274 | * @signature String -> String -> Number |
| 298 | - * @param string $token |
|
| 299 | - * @param string $text |
|
| 300 | 275 | * @return int |
| 301 | 276 | */ |
| 302 | 277 | function occurences() { |
@@ -322,9 +297,6 @@ discard block |
||
| 322 | 297 | * |
| 323 | 298 | * @stream |
| 324 | 299 | * @signature String -> String -> String -> [String] |
| 325 | - * @param string $surrounders |
|
| 326 | - * @param string $separator |
|
| 327 | - * @param sring $text |
|
| 328 | 300 | * @return array |
| 329 | 301 | */ |
| 330 | 302 | function chunks() { |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * Returns the list of scripts to compare. |
| 5 | 5 | * |
| 6 | - * @return array |
|
| 6 | + * @return string[] |
|
| 7 | 7 | */ |
| 8 | 8 | function scripts() { |
| 9 | 9 | return [ |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * and returns its running time in miliseconds. |
| 102 | 102 | * |
| 103 | 103 | * @param string $path |
| 104 | - * @return array |
|
| 104 | + * @return double |
|
| 105 | 105 | */ |
| 106 | 106 | function execute($path, $input) { |
| 107 | 107 | $start = microtime(true); |
@@ -82,8 +82,6 @@ discard block |
||
| 82 | 82 | * ``` |
| 83 | 83 | * |
| 84 | 84 | * @signature (*... -> a) -> [*] -> a |
| 85 | - * @param callable $fn |
|
| 86 | - * @param array $args |
|
| 87 | 85 | * @return mixed |
| 88 | 86 | */ |
| 89 | 87 | function apply() { |
@@ -107,7 +105,6 @@ discard block |
||
| 107 | 105 | * ``` |
| 108 | 106 | * |
| 109 | 107 | * @signature (((a, b, ...) -> o), (o -> p), ..., (y -> z)) -> ((a, b, ...) -> z) |
| 110 | - * @param callable $fns... |
|
| 111 | 108 | * @return callable |
| 112 | 109 | */ |
| 113 | 110 | function pipe() { |
@@ -138,7 +135,6 @@ discard block |
||
| 138 | 135 | * ``` |
| 139 | 136 | * |
| 140 | 137 | * @signature (((a, b, ...) -> o), (o -> p), ..., (y -> z)) -> ((a, b, ...) -> z) |
| 141 | - * @param callable $fns... |
|
| 142 | 138 | * @return callable |
| 143 | 139 | */ |
| 144 | 140 | function compose() { |
@@ -186,7 +182,6 @@ discard block |
||
| 186 | 182 | * ``` |
| 187 | 183 | * |
| 188 | 184 | * @signature a -> (* -> a) |
| 189 | - * @param mixed $value |
|
| 190 | 185 | * @return callable |
| 191 | 186 | */ |
| 192 | 187 | function give() { |
@@ -215,7 +210,6 @@ discard block |
||
| 215 | 210 | * ``` |
| 216 | 211 | * |
| 217 | 212 | * @signature ((a -> Boolean), ..., (a -> Boolean)) -> (a -> Boolean) |
| 218 | - * @param callable $predicates... |
|
| 219 | 213 | * @return callable |
| 220 | 214 | */ |
| 221 | 215 | function all() { |
@@ -249,7 +243,6 @@ discard block |
||
| 249 | 243 | * ``` |
| 250 | 244 | * |
| 251 | 245 | * @signature ((a -> Boolean), ..., (a -> Boolean)) -> (a -> Boolean) |
| 252 | - * @param callable $predicates... |
|
| 253 | 246 | * @return callable |
| 254 | 247 | */ |
| 255 | 248 | function any() { |
@@ -280,7 +273,6 @@ discard block |
||
| 280 | 273 | * ``` |
| 281 | 274 | * |
| 282 | 275 | * @signature (* -> ... -> *) -> (* -> ... -> Boolean) |
| 283 | - * @param callable $fn |
|
| 284 | 276 | * @return callable |
| 285 | 277 | */ |
| 286 | 278 | function complement() { |
@@ -313,7 +305,6 @@ discard block |
||
| 313 | 305 | * ``` |
| 314 | 306 | * |
| 315 | 307 | * @signature (a -> a -> Boolean) -> (a -> a -> Number) |
| 316 | - * @param callable $fn |
|
| 317 | 308 | * @return callable |
| 318 | 309 | */ |
| 319 | 310 | function comparator() { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | * @ignore |
| 89 | 89 | * @signature (a -> b) -> (a -> b) |
| 90 | 90 | * @param callable $fn |
| 91 | - * @return callable |
|
| 91 | + * @return \Closure |
|
| 92 | 92 | */ |
| 93 | 93 | function _curry_one($fn) { |
| 94 | 94 | return function() use($fn) { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * |
| 114 | 114 | * @signature (a,b -> c) -> (a -> b -> c) |
| 115 | 115 | * @param callable $fn |
| 116 | - * @return callable |
|
| 116 | + * @return \Closure |
|
| 117 | 117 | */ |
| 118 | 118 | function _curry_two($fn) { |
| 119 | 119 | return function() use($fn) { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * |
| 165 | 165 | * @signature (a,b,c -> d) -> (a -> b -> c -> d) |
| 166 | 166 | * @param callable $fn |
| 167 | - * @return callable |
|
| 167 | + * @return \Closure |
|
| 168 | 168 | */ |
| 169 | 169 | function _curry_three($fn) { |
| 170 | 170 | return function() use($fn) { |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | * @param callable $fn |
| 228 | 228 | * @param int $n |
| 229 | 229 | * @param array $given |
| 230 | - * @return callable |
|
| 230 | + * @return \Closure |
|
| 231 | 231 | */ |
| 232 | 232 | function _curry_n($fn, $n, $given = []) { |
| 233 | 233 | return function() use($fn, $n, $given) { |
@@ -15,8 +15,6 @@ discard block |
||
| 15 | 15 | * @stream |
| 16 | 16 | * @signature (a -> b) -> [a] -> [b] |
| 17 | 17 | * @signature (a -> b) -> {k: a} -> {k: b} |
| 18 | - * @param callable $fn |
|
| 19 | - * @param array $list |
|
| 20 | 18 | * @return array |
| 21 | 19 | */ |
| 22 | 20 | function map() { |
@@ -36,8 +34,6 @@ discard block |
||
| 36 | 34 | * |
| 37 | 35 | * @stream |
| 38 | 36 | * @signature (a -> [b]) -> [a] -> [b] |
| 39 | - * @param callable $fn |
|
| 40 | - * @param array $list |
|
| 41 | 37 | * @return array |
| 42 | 38 | */ |
| 43 | 39 | function chain() { |
@@ -63,8 +59,6 @@ discard block |
||
| 63 | 59 | * ``` |
| 64 | 60 | * @stream |
| 65 | 61 | * @signature (a -> Boolean) -> [a] -> [a] |
| 66 | - * @param callable $fn |
|
| 67 | - * @param array $list |
|
| 68 | 62 | * @return array |
| 69 | 63 | */ |
| 70 | 64 | function filter() { |
@@ -92,9 +86,6 @@ discard block |
||
| 92 | 86 | * |
| 93 | 87 | * @stream |
| 94 | 88 | * @signature (* -> a -> *) -> * -> [a] -> * |
| 95 | - * @param callable $fn |
|
| 96 | - * @param mixed $initial |
|
| 97 | - * @param array $list |
|
| 98 | 89 | * @return array |
| 99 | 90 | */ |
| 100 | 91 | function reduce() { |
@@ -120,8 +111,6 @@ discard block |
||
| 120 | 111 | * |
| 121 | 112 | * @stream |
| 122 | 113 | * @signature (a -> *) -> [a] -> [a] |
| 123 | - * @param callable $fn |
|
| 124 | - * @param array $list |
|
| 125 | 114 | * @return array |
| 126 | 115 | */ |
| 127 | 116 | function each() { |
@@ -148,7 +137,6 @@ discard block |
||
| 148 | 137 | * @stream |
| 149 | 138 | * @signature [a] -> a |
| 150 | 139 | * @signature String -> String |
| 151 | - * @param array|string $list |
|
| 152 | 140 | * @return mixed |
| 153 | 141 | */ |
| 154 | 142 | function head() { |
@@ -173,7 +161,6 @@ discard block |
||
| 173 | 161 | * @stream |
| 174 | 162 | * @signature [a] -> a |
| 175 | 163 | * @signature String -> String |
| 176 | - * @param array|string $list |
|
| 177 | 164 | * @return mixed |
| 178 | 165 | */ |
| 179 | 166 | function last () { |
@@ -203,7 +190,6 @@ discard block |
||
| 203 | 190 | * @stream |
| 204 | 191 | * @signature [a] -> a |
| 205 | 192 | * @signature String -> String |
| 206 | - * @param array|string $list |
|
| 207 | 193 | * @return array |
| 208 | 194 | */ |
| 209 | 195 | function init () { |
@@ -237,7 +223,6 @@ discard block |
||
| 237 | 223 | * @stream |
| 238 | 224 | * @signature [a] -> a |
| 239 | 225 | * @signature String -> String |
| 240 | - * @param array|string $list |
|
| 241 | 226 | * @return array |
| 242 | 227 | */ |
| 243 | 228 | function tail () { |
@@ -265,7 +250,6 @@ discard block |
||
| 265 | 250 | * @stream |
| 266 | 251 | * @signature [a] -> [a] |
| 267 | 252 | * @signature String -> String |
| 268 | - * @param array|string $list |
|
| 269 | 253 | * @return array |
| 270 | 254 | */ |
| 271 | 255 | function reverse () { |
@@ -289,7 +273,6 @@ discard block |
||
| 289 | 273 | * @stream |
| 290 | 274 | * @signature [a] -> Number |
| 291 | 275 | * @signature String -> Number |
| 292 | - * @param array|string $list |
|
| 293 | 276 | * @return int |
| 294 | 277 | */ |
| 295 | 278 | function length() { |
@@ -313,8 +296,6 @@ discard block |
||
| 313 | 296 | * |
| 314 | 297 | * @stream |
| 315 | 298 | * @signature (a -> Boolean) -> [a] -> Boolean |
| 316 | - * @param callable $predicate |
|
| 317 | - * @param array $list |
|
| 318 | 299 | * @return bool |
| 319 | 300 | */ |
| 320 | 301 | function allSatisfies() { |
@@ -340,8 +321,6 @@ discard block |
||
| 340 | 321 | * |
| 341 | 322 | * @stream |
| 342 | 323 | * @signature (a -> Boolean) -> [a] -> Boolean |
| 343 | - * @param callable $predicate |
|
| 344 | - * @param array $list |
|
| 345 | 324 | * @return bool |
| 346 | 325 | */ |
| 347 | 326 | function anySatisfies() { |
@@ -367,8 +346,6 @@ discard block |
||
| 367 | 346 | * @stream |
| 368 | 347 | * @signature [*] -> [*] -> [*] |
| 369 | 348 | * @signature String -> String -> String |
| 370 | - * @param array $list1 |
|
| 371 | - * @param array $list2 |
|
| 372 | 349 | * @return array |
| 373 | 350 | */ |
| 374 | 351 | function concat() { |
@@ -391,7 +368,6 @@ discard block |
||
| 391 | 368 | * |
| 392 | 369 | * @stream |
| 393 | 370 | * @signature [[a]] -> [a] |
| 394 | - * @param array $lists |
|
| 395 | 371 | * @return array |
| 396 | 372 | */ |
| 397 | 373 | function concatAll() { |
@@ -426,9 +402,6 @@ discard block |
||
| 426 | 402 | * @stream |
| 427 | 403 | * @signature Number -> a -> [a] -> [a] |
| 428 | 404 | * @signature Number -> String -> String -> String |
| 429 | - * @param int $position |
|
| 430 | - * @param mixed $item |
|
| 431 | - * @param array $list |
|
| 432 | 405 | * @return array |
| 433 | 406 | */ |
| 434 | 407 | function insert() { |
@@ -456,9 +429,6 @@ discard block |
||
| 456 | 429 | * @stream |
| 457 | 430 | * @signature Number -> [a] -> [a] -> [a] |
| 458 | 431 | * @signature Number -> String -> String -> String |
| 459 | - * @param int $position |
|
| 460 | - * @param mixed $items |
|
| 461 | - * @param array $list |
|
| 462 | 432 | * @return array |
| 463 | 433 | */ |
| 464 | 434 | function insertAll() { |
@@ -491,8 +461,6 @@ discard block |
||
| 491 | 461 | * @stream |
| 492 | 462 | * @signature * -> [*] -> [*] |
| 493 | 463 | * @signature String -> String -> String |
| 494 | - * @param mixed $item |
|
| 495 | - * @param array $list |
|
| 496 | 464 | * @return array |
| 497 | 465 | */ |
| 498 | 466 | function append() { |
@@ -517,8 +485,6 @@ discard block |
||
| 517 | 485 | * @stream |
| 518 | 486 | * @signature a -> [a] -> [a] |
| 519 | 487 | * @signature String -> String -> String |
| 520 | - * @param mixed $item |
|
| 521 | - * @param array $list |
|
| 522 | 488 | * @return array |
| 523 | 489 | */ |
| 524 | 490 | function prepend() { |
@@ -548,8 +514,6 @@ discard block |
||
| 548 | 514 | * @stream |
| 549 | 515 | * @signature Number -> [a] -> [a] |
| 550 | 516 | * @signature Number -> String -> String |
| 551 | - * @param int $count |
|
| 552 | - * @param array $list |
|
| 553 | 517 | * @return array |
| 554 | 518 | */ |
| 555 | 519 | function take() { |
@@ -582,8 +546,6 @@ discard block |
||
| 582 | 546 | * |
| 583 | 547 | * @stream |
| 584 | 548 | * @signature (a -> Boolean) -> [a] -> [a] |
| 585 | - * @param callable $predicate |
|
| 586 | - * @param array $list |
|
| 587 | 549 | * @return array |
| 588 | 550 | */ |
| 589 | 551 | function takeWhile() { |
@@ -609,8 +571,6 @@ discard block |
||
| 609 | 571 | * |
| 610 | 572 | * @stream |
| 611 | 573 | * @signature (a -> Boolean) -> [a] -> [a] |
| 612 | - * @param callable $predicate |
|
| 613 | - * @param array $list |
|
| 614 | 574 | * @return array |
| 615 | 575 | */ |
| 616 | 576 | function takeLastWhile() { |
@@ -636,8 +596,6 @@ discard block |
||
| 636 | 596 | * |
| 637 | 597 | * @stream |
| 638 | 598 | * @signature (a -> Boolean) -> [a] -> [a] |
| 639 | - * @param callable $predicate |
|
| 640 | - * @param array $list |
|
| 641 | 599 | * @return array |
| 642 | 600 | */ |
| 643 | 601 | function takeUntil() { |
@@ -663,8 +621,6 @@ discard block |
||
| 663 | 621 | * |
| 664 | 622 | * @stream |
| 665 | 623 | * @signature (a -> Boolean) -> [a] -> [a] |
| 666 | - * @param callable $predicate |
|
| 667 | - * @param array $list |
|
| 668 | 624 | * @return array |
| 669 | 625 | */ |
| 670 | 626 | function takeLastUntil() { |
@@ -695,8 +651,6 @@ discard block |
||
| 695 | 651 | * @stream |
| 696 | 652 | * @signature Number -> [a] -> [a] |
| 697 | 653 | * @signature Number -> String -> String |
| 698 | - * @param int $count |
|
| 699 | - * @param array $list |
|
| 700 | 654 | * @return array |
| 701 | 655 | */ |
| 702 | 656 | function remove() { |
@@ -733,8 +687,6 @@ discard block |
||
| 733 | 687 | * |
| 734 | 688 | * @stream |
| 735 | 689 | * @signature (a -> Boolean) -> [a] -> [a] |
| 736 | - * @param callable $predicate |
|
| 737 | - * @param array $list |
|
| 738 | 690 | * @return array |
| 739 | 691 | */ |
| 740 | 692 | function removeWhile() { |
@@ -760,8 +712,6 @@ discard block |
||
| 760 | 712 | * |
| 761 | 713 | * @stream |
| 762 | 714 | * @signature (a -> Boolean) -> [a] -> [a] |
| 763 | - * @param callable $predicate |
|
| 764 | - * @param array $list |
|
| 765 | 715 | * @return array |
| 766 | 716 | */ |
| 767 | 717 | function removeLastWhile() { |
@@ -788,8 +738,6 @@ discard block |
||
| 788 | 738 | * |
| 789 | 739 | * @stream |
| 790 | 740 | * @signature (a -> Boolean) -> [a] -> [a] |
| 791 | - * @param callable $predicate |
|
| 792 | - * @param array $list |
|
| 793 | 741 | * @return array |
| 794 | 742 | */ |
| 795 | 743 | function removeUntil() { |
@@ -816,8 +764,6 @@ discard block |
||
| 816 | 764 | * |
| 817 | 765 | * @stream |
| 818 | 766 | * @signature (a -> Boolean) -> [a] -> [a] |
| 819 | - * @param callable $predicate |
|
| 820 | - * @param array $list |
|
| 821 | 767 | * @return array |
| 822 | 768 | */ |
| 823 | 769 | function removeLastUntil() { |
@@ -840,7 +786,6 @@ discard block |
||
| 840 | 786 | * |
| 841 | 787 | * @stream |
| 842 | 788 | * @signature [(k, v)] -> {k: v} |
| 843 | - * @param array $pairs |
|
| 844 | 789 | * @return stdClass |
| 845 | 790 | */ |
| 846 | 791 | function fromPairs() { |
@@ -870,8 +815,6 @@ discard block |
||
| 870 | 815 | * @stream |
| 871 | 816 | * @signature Number -> [a] -> [[a]] |
| 872 | 817 | * @signature Number -> String -> [String] |
| 873 | - * @param int $size |
|
| 874 | - * @param array $list |
|
| 875 | 818 | * @return array |
| 876 | 819 | */ |
| 877 | 820 | function slices() { |
@@ -905,8 +848,6 @@ discard block |
||
| 905 | 848 | * @stream |
| 906 | 849 | * @signature a -> [a] -> Boolean |
| 907 | 850 | * @signature String -> String -> Boolean |
| 908 | - * @param mixed $item |
|
| 909 | - * @param array|string $list |
|
| 910 | 851 | * @return bool |
| 911 | 852 | */ |
| 912 | 853 | function contains() { |
@@ -932,8 +873,6 @@ discard block |
||
| 932 | 873 | * @stream |
| 933 | 874 | * @signature (a -> Boolean) -> [a] -> Maybe(Number) |
| 934 | 875 | * @signature (v -> Boolean) -> {k: v} -> Maybe(k) |
| 935 | - * @param callable $predicate |
|
| 936 | - * @param array $list |
|
| 937 | 876 | * @return mixed |
| 938 | 877 | */ |
| 939 | 878 | function findIndex() { |
@@ -961,8 +900,6 @@ discard block |
||
| 961 | 900 | * @stream |
| 962 | 901 | * @signature (a -> Boolean) -> [a] -> Maybe(Number) |
| 963 | 902 | * @signature (v -> Boolean) -> {k: v} -> Maybe(k) |
| 964 | - * @param callable $predicate |
|
| 965 | - * @param array $list |
|
| 966 | 903 | * @return mixed |
| 967 | 904 | */ |
| 968 | 905 | function findLastIndex() { |
@@ -991,8 +928,6 @@ discard block |
||
| 991 | 928 | * |
| 992 | 929 | * @stream |
| 993 | 930 | * @signature (a -> Boolean) -> [a] -> Maybe(a) |
| 994 | - * @param callable $predicate |
|
| 995 | - * @param array $list |
|
| 996 | 931 | * @return mixed |
| 997 | 932 | */ |
| 998 | 933 | function find() { |
@@ -1018,8 +953,6 @@ discard block |
||
| 1018 | 953 | * |
| 1019 | 954 | * @stream |
| 1020 | 955 | * @signature (a -> Boolean) -> [a] -> Maybe(a) |
| 1021 | - * @param callable $predicate |
|
| 1022 | - * @param array $list |
|
| 1023 | 956 | * @return mixed |
| 1024 | 957 | */ |
| 1025 | 958 | function findLast() { |
@@ -1057,8 +990,6 @@ discard block |
||
| 1057 | 990 | * @signature a -> [a] -> Number |
| 1058 | 991 | * @signature v -> {k: v} -> Maybe(k) |
| 1059 | 992 | * @signature String -> String -> Number |
| 1060 | - * @param mixed $item |
|
| 1061 | - * @param array $list |
|
| 1062 | 993 | * @return int |
| 1063 | 994 | */ |
| 1064 | 995 | function indexOf() { |
@@ -1097,8 +1028,6 @@ discard block |
||
| 1097 | 1028 | * @signature a -> [a] -> Number |
| 1098 | 1029 | * @signature v -> {k: v} -> Maybe(k) |
| 1099 | 1030 | * @signature String -> String -> Number |
| 1100 | - * @param mixed $item |
|
| 1101 | - * @param array $list |
|
| 1102 | 1031 | * @return int |
| 1103 | 1032 | */ |
| 1104 | 1033 | function lastIndexOf() { |
@@ -1132,8 +1061,6 @@ discard block |
||
| 1132 | 1061 | * |
| 1133 | 1062 | * @stream |
| 1134 | 1063 | * @signature (a -> a -> Boolean) -> [a] -> [a] |
| 1135 | - * @param callable $areEqual |
|
| 1136 | - * @param array $list |
|
| 1137 | 1064 | * @return array |
| 1138 | 1065 | */ |
| 1139 | 1066 | function uniqueBy() { |
@@ -1170,7 +1097,6 @@ discard block |
||
| 1170 | 1097 | * |
| 1171 | 1098 | * @stream |
| 1172 | 1099 | * @signature [a] -> [a] |
| 1173 | - * @param array $list |
|
| 1174 | 1100 | * @return array |
| 1175 | 1101 | */ |
| 1176 | 1102 | function unique() { |
@@ -1203,8 +1129,6 @@ discard block |
||
| 1203 | 1129 | * |
| 1204 | 1130 | * @stream |
| 1205 | 1131 | * @signature (a -> String) -> [a] -> {String: a} |
| 1206 | - * @param callable $fn |
|
| 1207 | - * @param array $list |
|
| 1208 | 1132 | * @return array |
| 1209 | 1133 | */ |
| 1210 | 1134 | function groupBy() { |
@@ -1234,8 +1158,6 @@ discard block |
||
| 1234 | 1158 | * |
| 1235 | 1159 | * @stream |
| 1236 | 1160 | * @signature [a] -> [b] -> [[a,b]] |
| 1237 | - * @param array $list1 |
|
| 1238 | - * @param array $list2 |
|
| 1239 | 1161 | * @return array |
| 1240 | 1162 | */ |
| 1241 | 1163 | function pairsFrom() { |
@@ -1280,8 +1202,6 @@ discard block |
||
| 1280 | 1202 | * |
| 1281 | 1203 | * @stream |
| 1282 | 1204 | * @signature (a -> a -> Boolean) -> [a] -> [a] |
| 1283 | - * @param callable $compare |
|
| 1284 | - * @param array $list |
|
| 1285 | 1205 | * @return array |
| 1286 | 1206 | */ |
| 1287 | 1207 | function sort() { |