芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/azjezz/psl/src/Psl/Iter/search.php
'baz' === $v) * => Str('baz') * * Iter\search(['foo', 'bar', 'baz'], fn($v) => 'qux' === $v) * => Null * * @template T * * @param iterable
$iterable The iterable to search * @param (Closure(T): bool) $predicate * * @return T|null */ function search(iterable $iterable, Closure $predicate) { foreach ($iterable as $value) { if ($predicate($value)) { return $value; } } return null; }