KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given an IEnumerable<T> and row count, I would like to convert it to an IEnumerable<IEnumerable<T>> like so: Input: Row Count: 3 List: [1,2,3,4,5,6,7] Output [ [1,4,7] [2,5] [3,6] ] EDIT I would like this to work for any IEnumerable and not depend on T being an Int32. How can I do this using LINQ?
Tags (comma-separated)
Save Edits
Cancel