3 ms·
Grouper is a recipe, it's not part of itertools. It probably should be!
by unoti 11y ago
Grouper is a recipe, it's not part of itertools. It probably should be!
- thomasahle 11y agoAll of the recipes in the itertools documentation should pretty much be considered folklore imho. If you always use the 'zip((iterator,)n)' approach, people will recognize it and know immediately what you mean.