Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Vec/flat_map.php
Назад
<?php declare(strict_types=1); namespace Psl\Vec; use Closure; /** * @template Tv * @template Ts * * @param iterable<Tv> $iterable Iterable to be mapped over * @param (Closure(Tv): iterable<Ts>) $mapper * * @return list<Ts> */ function flat_map(iterable $iterable, Closure $mapper): array { $flattened = []; foreach ($iterable as $value) { foreach ($mapper($value) as $item) { $flattened[] = $item; } } return $flattened; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка