pogona.util.grouper
- pogona.util.grouper(iterable: Iterable, n: int, fillvalue=None)[source]
Iterate over an iterable in n-sized chunks. Based on https://stackoverflow.com/a/434411/1018176
- Parameters
iterable –
n –
fillvalue –
- Returns
Iterate over an iterable in n-sized chunks. Based on https://stackoverflow.com/a/434411/1018176
iterable –
n –
fillvalue –