It may be either impossible or so obvious that I continue to go through it.
I have a list of objects (e.g. ints for this example):
List<int> list = new List<int>() { 1, 2, 3, 4, 5, 6 };
I would like to be able to group in pairs without taking into account the order or any other comparison, returning a new IGrouping object.
t
list.GroupBy(i => someLogicToProductPairs);
There is a very real possibility, I can approach this problem from the wrong angle, however, the goal is to group a set of objects with constant power. Any help is appreciated.
source
share