芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/azjezz/psl/src/Psl/Dict/map.php
$i * 2); * => Dict(2, 4, 6, 8, 10) * * @template Tk of array-key * @template Tv * @template T * * @param iterable
$iterable Iterable to be mapped over * @param (Closure(Tv): T) $function * * @return ($iterable is non-empty-array ? non-empty-array
: array
) */ function map(iterable $iterable, Closure $function): array { $result = []; foreach ($iterable as $key => $value) { $result[$key] = $function($value); } return $result; }