Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.18 KB

GroupingConstructor.md

File metadata and controls

27 lines (22 loc) · 1.18 KB

Documentation

GroupingConstructor

interface GroupingConstructor extends EnumerableConstructor {
  readonly prototype: IGrouping<any, any>

  new<TSource, TKey> (iterator: () => IterableIterator<TSource>, key: TKey): Grouping<TKey, TSource>
  new<TSource, TKey> (iterator: () => IterableIterator<TSource>, compare: undefined, key: TKey): Grouping<TSource, TKey>
  new<TSource, TKey> (iterator: () => IterableIterator<TSource>, compare: CompareFunction<TSource>, key: TKey): IOrderedGrouping<TKey, TSource>

  new<TKey> (iterator: () => IterableIterator<any>, key: TKey): Grouping<TKey, any>
  new<TKey> (iterator: () => IterableIterator<any>, compare: undefined, key: TKey): Grouping<TKey, any>
  new<TKey> (iterator: () => IterableIterator<any>, compare: CompareFunction<any>, key: TKey): IOrderedGrouping<TKey, any>
}