Interface EnumerableStatic

Index

Construct signatures

Methods

Construct signatures

constructor(getEnumerator: () => Ix.Enumerator<T>): Enumerable

Parameters

  • getEnumerator: () => Ix.Enumerator<T>

Returns

Enumerable

Methods

public case(selector: () => number, sources: { [key: number]: Ix.Enumerable<T>; }, defaultSource?: Enumerable): Enumerable

Parameters

  • selector: () => number
  • sources: { [key: number]: Ix.Enumerable<T>; }
  • defaultSource?: Enumerable optional

Returns

Enumerable

public case(selector: () => string, sources: { [key: string]: Ix.Enumerable<T>; }, defaultSource?: Enumerable): Enumerable

Parameters

  • selector: () => string
  • sources: { [key: string]: Ix.Enumerable<T>; }
  • defaultSource?: Enumerable optional

Returns

Enumerable

public catch(sources?: Enumerable[]): Enumerable

Parameters

Returns

Enumerable

public catchException(sources?: Enumerable[]): Enumerable

Parameters

Returns

Enumerable

public concat(sources?: Enumerable[]): Enumerable

Parameters

Returns

Enumerable

public create(getEnumerator: () => Ix.Enumerator<T>): Enumerable

Parameters

  • getEnumerator: () => Ix.Enumerator<T>

Returns

Enumerable

public defer(enumerableFactory: () => Ix.Enumerable<T>): Enumerable

Parameters

  • enumerableFactory: () => Ix.Enumerable<T>

Returns

Enumerable

public doWhile(source: Enumerable, condition: EnumerablePredicate): Enumerable

Parameters

Returns

Enumerable

public empty(): Enumerable

Returns

Enumerable

public for(source: Enumerable, resultSelector: EnumerableFunc): Enumerable

Parameters

Returns

Enumerable

public forIn(source: Enumerable, resultSelector: EnumerableFunc): Enumerable

Parameters

Returns

Enumerable

public fromArray(array: Array<T>): Enumerable

Parameters

  • array: Array<T>

Returns

Enumerable

public generate(initialState: TState, condition: Predicate, iterate: (state: TState) => TState, resultSelector: (state: TState) => TResult): Enumerable

Parameters

  • initialState: TState
  • condition: Predicate
  • iterate: (state: TState) => TState
  • resultSelector: (state: TState) => TResult

Returns

Enumerable

public if(condition: () => boolean, thenSource: Enumerable, elseSource?: Enumerable): Enumerable

Parameters

Returns

Enumerable

public ifThen(condition: () => boolean, thenSource: Enumerable, elseSource?: Enumerable): Enumerable

Parameters

Returns

Enumerable

public onErrorResumeNext(sources?: Enumerable[]): Enumerable

Parameters

Returns

Enumerable

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

Parameters

  • start: number
  • count: number

Returns

Enumerable

public repeat(value: T, repeatCount?: number): Enumerable

Parameters

  • value: T
  • repeatCount?: number optional

Returns

Enumerable

public return(value: T): Enumerable

Parameters

  • value: T

Returns

Enumerable

public returnValue(value: T): Enumerable

Parameters

  • value: T

Returns

Enumerable

public sequenceEqual(first: Enumerable, second: Enumerable, comparer: EqualityComparer): boolean

Parameters

Returns

boolean

public sequenceEqual(first: Enumerable, second: Enumerable): boolean

Parameters

Returns

boolean

public switchCase(selector: () => number, sources: { [key: number]: Ix.Enumerable<T>; }, defaultSource?: Enumerable): Enumerable

Parameters

  • selector: () => number
  • sources: { [key: number]: Ix.Enumerable<T>; }
  • defaultSource?: Enumerable optional

Returns

Enumerable

public switchCase(selector: () => string, sources: { [key: string]: Ix.Enumerable<T>; }, defaultSource?: Enumerable): Enumerable

Parameters

  • selector: () => string
  • sources: { [key: string]: Ix.Enumerable<T>; }
  • defaultSource?: Enumerable optional

Returns

Enumerable

public throw(error: Error): Enumerable

Parameters

  • error: Error

Returns

Enumerable

public throwException(error: Error): Enumerable

Parameters

  • error: Error

Returns

Enumerable

public using(resourceFactory: () => TResource, enumerableFactory: (resource: TResource) => Ix.Enumerable<T>): Enumerable

Parameters

  • resourceFactory: () => TResource
  • enumerableFactory: (resource: TResource) => Ix.Enumerable<T>

Returns

Enumerable

public while(condition: EnumerablePredicate, source: Enumerable): Enumerable

Parameters

Returns

Enumerable

public whileDo(condition: EnumerablePredicate, source: Enumerable): Enumerable

Parameters

Returns

Enumerable