public static IEnumerable <TResult> GroupProgressiveBy <TSource, TKey, TResult>(this IEnumerable <TSource> source, Func <TSource, TKey> keySelector, Func <TKey, IEnumerable <TSource>, TResult> resultSelector, IEqualityComparer <TKey> comparer) { LinqCheck.SourceAndKeyResultSelectors(source, keySelector, resultSelector); return(CreateGroupByIterator(source, keySelector, resultSelector, comparer)); }
public static IEnumerable <IGrouping <TKey, TElement> > GroupProgressiveBy <TSource, TKey, TElement>(this IEnumerable <TSource> source, Func <TSource, TKey> keySelector, Func <TSource, TElement> elementSelector, IEqualityComparer <TKey> comparer) { LinqCheck.SourceAndKeyElementSelectors(source, keySelector, elementSelector); return(CreateGroupByIterator(source, keySelector, elementSelector, comparer)); }