Split list into chunks
Chunks a list into smaller lists of a specified size.
- Use
list()
andrange()
to create a list of the desiredsize
. - Use
map()
on the list and fill it with splices of the given list. - Finally, return the created list.
Chunks a list into smaller lists of a specified size.
list()
and range()
to create a list of the desired size
.map()
on the list and fill it with splices of the given list.