Function partition
Partitions the input sequence into partitions of the specified size.
Parameters summary
mixed |
$iterable |
Iterable sequence of data. |
integer |
$size |
Size to make each partition (except possibly the last chunk) |
Return value summary
Generator
|
\Generator |