8000 `Batch` should return `IEnumerable<T[]>` · Issue #98 · morelinq/MoreLINQ · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Batch should return IEnumerable<T[]> #98
Closed
@atifaziz

Description

@atifaziz

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).


Originally reported on Google Code with ID 98

Reported by @Arithmomaniac on 2015-03-09 14:19:50

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0