When grouping numbers ,I use
string[] numbers =
{ "123", "34555", "91882", "100", "7823", "1111", "76551" };
var query = from digits in numbers
group digits by digits.Length into ByDigit
select
new { digit = ByDigit, length = ByDigit.Key };
When i suppose to use
var query = numbers.GroupBy() (
I do't know how to name it ,is it extension chaining ?)
what is the way to do it?