remove usage of closure generics. (#176)

This commit is contained in:
Saif Eddin Gmati 2021-03-29 07:54:16 +01:00 committed by GitHub
parent 590e9d5363
commit eee8390be7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 17 deletions

View File

@ -30,9 +30,6 @@ function diff(iterable $first, iterable $second, iterable ...$rest): array
return array_diff(from_iterable($first), from_iterable($second), ...Vec\map( return array_diff(from_iterable($first), from_iterable($second), ...Vec\map(
$rest, $rest,
/** /**
* @template Tk of array-key
* @template Tv
*
* @param iterable<Tk, Tv> $iterable * @param iterable<Tk, Tv> $iterable
* *
* @return array<Tk, Tv> * @return array<Tk, Tv>

View File

@ -30,9 +30,6 @@ function diff_by_key(iterable $first, iterable $second, iterable ...$rest): arra
return array_diff_key(from_iterable($first), from_iterable($second), ...Vec\map( return array_diff_key(from_iterable($first), from_iterable($second), ...Vec\map(
$rest, $rest,
/** /**
* @template Tk of array-key
* @template Tv
*
* @param iterable<Tk, Tv> $iterable * @param iterable<Tk, Tv> $iterable
* *
* @return array<Tk, Tv> * @return array<Tk, Tv>

View File

@ -30,9 +30,6 @@ function intersect(iterable $first, iterable $second, iterable ...$rest): array
return array_intersect(from_iterable($first), from_iterable($second), ...Vec\map( return array_intersect(from_iterable($first), from_iterable($second), ...Vec\map(
$rest, $rest,
/** /**
* @template Tk of array-key
* @template Tv
*
* @param iterable<Tk, Tv> $iterable * @param iterable<Tk, Tv> $iterable
* *
* @return array<Tk, Tv> * @return array<Tk, Tv>

View File

@ -30,9 +30,6 @@ function intersect_by_key(iterable $first, iterable $second, iterable ...$rest):
return array_intersect_key(from_iterable($first), from_iterable($second), ...Vec\map( return array_intersect_key(from_iterable($first), from_iterable($second), ...Vec\map(
$rest, $rest,
/** /**
* @template Tk of array-key
* @template Tv
*
* @param iterable<Tk, Tv> $iterable * @param iterable<Tk, Tv> $iterable
* *
* @return array<Tk, Tv> * @return array<Tk, Tv>

View File

@ -36,12 +36,10 @@ function pipe(callable ...$stages): callable
return static fn ($input) => reduce( return static fn ($input) => reduce(
$stages, $stages,
/** /**
* @template IO * @param T $input
* @param (callable(T): T) $next
* *
* @param IO $input * @return T
* @param (callable(IO): IO) $next
*
* @return IO
*/ */
static fn ($input, callable $next) => $next($input), static fn ($input, callable $next) => $next($input),
$input $input