A LINQ Style Partition Operator

0 Kicks, 82 Views

Sometimes a sequence of values needs to be split into partitions, batches or chunks. This article describes an extension method that performs such an operation, accepting a collection of any type and returning a set of sequences from its contents.