import { IGrouping } from "../types" ; import { ArrayEnumerable } from "./ArrayEnumerable" ; private export class Grouping < TKey , TElement > extends ArrayEnumerable < TElement > implements IGrouping < TKey , TElement > { public readonly key : TKey ; public constructor ( key , startingItem ) { super ( 1 ) ; this . key = key ; this [ 0 ] = startingItem ; } }