I have an IEnumerable<string
> which I would like to split into groups of three so if my input had 6 items i would get a IEnumerable<IEnumerable<string>>
returned with two items each of which would contain an IEnumerable<string>
which my string contents in it.
I am looking for how to do this with Linq rather than a simple for loop
Thanks