Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple loop solution in Clear category for Chunk by thealfest1
from typing import Iterable
def chunking_by(items: list, size: int) -> Iterable:
out = []
for f in range(0, len(items), size):
out.append(items[f:f + size])
return out
March 2, 2020