Interface EnumerableStatic

Index

Methods

Methods

public Choice(contents?: Array<any>): Enumerable

Parameters

  • contents?: Array<any> optional

Returns

Enumerable

public Choice(contents: Array<any>): Enumerable

Parameters

  • contents: Array<any>

Returns

Enumerable

public Cycle(contents?: Array<any>): Enumerable

Parameters

  • contents?: Array<any> optional

Returns

Enumerable

public Cycle(contents: Array<any>): Enumerable

Parameters

  • contents: Array<any>

Returns

Enumerable

public Empty(): Enumerable

Returns

Enumerable

public From(obj: Array<any>): Enumerable

Parameters

  • obj: Array<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 Generate(func: string, count?: number): Enumerable

Parameters

  • func: string
  • count?: number optional

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(obj: any, count?: number): Enumerable

Parameters

  • obj: any
  • count?: number optional

Returns

Enumerable

public RepeatWithFinalize(initializer: () => any, finalizer: (resource: any) => void): Enumerable

Parameters

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

Returns

Enumerable

public Return(element: any): Enumerable

Parameters

  • element: any

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: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Unfold(seed: any, func: string): Enumerable

Parameters

  • seed: any
  • func: string

Returns

Enumerable