What is the best way to convert IEnumerable<IGrouping<T,K>>
to IEnumerable<K>
?
It seems this way will work:
myEnumerable = myEnumerableOfGroups
.Select( group => group.AsEnumerable)
.Aggregate((enumA, enumB) => enumA.Concat(enumB));
is there a more efficient way to do it ?