parent
4910317c38
commit
28491fd4ea
4 changed files with 1240 additions and 1315 deletions
src/Infrastructure
|
@ -7,9 +7,9 @@ use function array_values;
|
|||
|
||||
/**
|
||||
* @template T
|
||||
* @param array<T> $input
|
||||
* @param callable(mixed, mixed=):scalar $callable
|
||||
* @return array<int, T>
|
||||
* @param T[] $input
|
||||
* @param callable(T):bool $callable
|
||||
* @return T[]
|
||||
*/
|
||||
function arrayFilter(array $input, callable $callable): array
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue