- _groupAdjacent<TSource, TKey, TElement, TResult>(src: Iterable<TSource>, keySelector: IndexedSelector<TSource, TKey>, elementSelector: IndexedSelector<TSource, TElement>, resultSelector: ((key: TKey, items: Iterable<TElement>) => TResult), equalityComparer?: ((a: undefined | TKey, b: undefined | TKey) => boolean)): Iterable<TResult>
-
Type Parameters
-
TSource
-
TKey
-
TElement
-
TResult
Parameters
-
src: Iterable<TSource>
-
-
elementSelector: IndexedSelector<TSource, TElement>
-
resultSelector: ((key: TKey, items: Iterable<TElement>) => TResult)
-
- (key: TKey, items: Iterable<TElement>): TResult
-
Parameters
-
key: TKey
-
items: Iterable<TElement>
Returns TResult
-
Optional
equalityComparer: ((a: undefined | TKey, b: undefined | TKey) => boolean)
-
- (a: undefined | TKey, b: undefined | TKey): boolean
-
Parameters
-
a: undefined | TKey
-
b: undefined | TKey
Returns boolean
Returns Iterable<TResult>