Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.26 KB

EnumerableConstructor.md

File metadata and controls

34 lines (25 loc) · 1.26 KB

Documentation

EnumerableConstructor

interface EnumerableConstructor {
  readonly prototype: IEnumerable<any>

  new<TSource> (iterator: () => IterableIterator<TSource>, compare?: undefined): Enumerable<TSource>
  new<TSource> (iterator: () => IterableIterator<TSource>, compare: CompareFunction<TSource>): IOrderedEnumerable<TSource>

  new (iterator: () => IterableIterator<any>, compare?: undefined): Enumerable<any>
  new (iterator: () => IterableIterator<any>, compare: CompareFunction<any>): IOrderedEnumerable<any>

  empty<TSource> (compare?: undefined): Enumerable<TSource>
  empty<TSource> (compare: CompareFunction<TSource>): IOrderedEnumerable<TSource>

  isEnumerable<TSource> (iterable: Iterable<TSource>): iterable is Enumerable<TSource>

  range (start: number, count: number): Enumerable<number> | never

  repeat<TSource> (element: TSource, count: number): Enumerable<TSource>
}