芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/azjezz/psl/src/Psl/Vec/chunk.php
$iterable * @param positive-int $size * * @return list
> */ function chunk(iterable $iterable, int $size): array { $result = []; $ii = 0; $chunk_number = -1; foreach ($iterable as $value) { if ($ii % $size === 0) { $result[] = []; $chunk_number++; } $result[$chunk_number][] = $value; $ii++; } return values($result); }