Interface EnumerableStatic

Index

Properties

Methods

Properties

public Utils: { createLambda(expression: any): (...params: any[]) => any; createEnumerable(getEnumerator: () => linqjs.IEnumerator): linqjs.Enumerable; createEnumerator(initialize: () => void, tryGetNext: () => boolean, dispose: () => void): linqjs.IEnumerator; extendTo(type: any): void; }

public createEnumerable(): Enumerable

Returns

Enumerable

.getEnumerator.getEnumerator: () => linqjs.IEnumerator

public createEnumerator(): IEnumerator

Returns

IEnumerator

.dispose.dispose: () => void

.initialize.initialize: () => void

.tryGetNext.tryGetNext: () => boolean

public createLambda(): (...params: any[]) => any

Returns

(...params: any[]) => any

.expression.expression: any

public extendTo()

.type.type: any

Methods

public choice(params?: Array<any>): Enumerable

Parameters

  • params?: Array<any> optional

Returns

Enumerable

public cycle(params?: Array<any>): Enumerable

Parameters

  • params?: Array<any> optional

Returns

Enumerable

public defer(enumerableFactory: () => linqjs.Enumerable): Enumerable

Parameters

  • enumerableFactory: () => linqjs.Enumerable

Returns

Enumerable

public empty(): Enumerable

Returns

Enumerable

public from(): Enumerable

Returns

Enumerable

public from(obj: Enumerable): Enumerable

Parameters

Returns

Enumerable

public from(obj: string): Enumerable

Parameters

  • obj: string

Returns

Enumerable

public from(obj: number): Enumerable

Parameters

  • obj: number

Returns

Enumerable

public from(obj: { length: number; [x: number]: any; }): Enumerable

Parameters

  • obj: { length: number; [x: number]: any; }

Returns

Enumerable

public from(obj: any): Enumerable

Parameters

  • obj: any

Returns

Enumerable

public generate(func: () => any, count?: number): Enumerable

Parameters

  • func: () => any
  • count?: number optional

Returns

Enumerable

public make(element: any): Enumerable

Parameters

  • element: any

Returns

Enumerable

public matches(input: string, pattern: RegExp): Enumerable

Parameters

  • input: string
  • pattern: RegExp

Returns

Enumerable

public matches(input: string, pattern: string, flags?: string): Enumerable

Parameters

  • input: string
  • pattern: string
  • flags?: string optional

Returns

Enumerable

public range(start: number, count: number, step?: number): Enumerable

Parameters

  • start: number
  • count: number
  • step?: number optional

Returns

Enumerable

public rangeDown(start: number, count: number, step?: number): Enumerable

Parameters

  • start: number
  • count: number
  • step?: number optional

Returns

Enumerable

public rangeTo(start: number, to: number, step?: number): Enumerable

Parameters

  • start: number
  • to: number
  • step?: number optional

Returns

Enumerable

public repeat(element: any, count?: number): Enumerable

Parameters

  • element: any
  • count?: number optional

Returns

Enumerable

public repeatWithFinalize(initializer: () => any, finalizer: (element: any) => void): Enumerable

Parameters

  • initializer: () => any
  • finalizer: (element: any) => void

Returns

Enumerable

public toInfinity(start?: number, step?: number): Enumerable

Parameters

  • start?: number optional
  • step?: number optional

Returns

Enumerable

public toNegativeInfinity(start?: number, step?: number): Enumerable

Parameters

  • start?: number optional
  • step?: number optional

Returns

Enumerable

public unfold(seed: any, func: (value: any) => any): Enumerable

Parameters

  • seed: any
  • func: (value: any) => any

Returns

Enumerable