Since batches are about splitting an IEnumerable into fixed sizes, every batch should know how many items it has, in addition to the original order of the source enumerable. Size + order preservation = IList.
This should break little (if any) existing code, because IList inherits IEnumerable. Asides from the signature, the only code change that needs to be made is for the underlying bucket store to be a List instead of an Array (which is the more LINQy approach anyways).
Comment #1
Posted on May 27, 2015 by Happy GiraffeOr at least IReadOnlyCollection.
Comment #2
Posted on Aug 21, 2015 by Massive OxThis issue has been migrated to: https://github.com/MoreLINQ/morelinq/issues/98 The conversation continues there. DO NOT post any further comments to the issue tracker on Google Code as it is shutting down. You can also just subscribe to the issue on GitHub to receive notifications of any further development.
Status: New
Labels:
Type-Enhancement