for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace loophp\collection\Operation;
use Closure;
use Generator;
/**
* @immutable
*
* @template TKey
* @template T
*/
final class First extends AbstractOperation
{
* @return Closure(iterable<TKey, T>): Generator<TKey, T>
public function __invoke(): Closure
return (new Head())();
}