18 Jul
2010
18 Jul
'10
5:31 a.m.
Shane Hathaway wrote:
- It ignores the type of the container. If I provide a string as input, I expect an iterable of strings as output.
Fine, but...
- If I give a batch size of 1000000, grouper() is going to be rather inefficient.
I guess you would prefer each batch to be a lazy iterator over part of the original sequence -- but that would conflict with the previous requirement. -- Greg