Interface Enumerable

Hierarchy

Index

Methods

Methods

public aggregate(seed: TAccumulate, func: (accumulate: TAccumulate, current: T, index: number, self: Ix.Enumerable<T>) => TAccumulate, resultSelector: (accumulate: TAccumulate) => TResult): TResult

Parameters

  • seed: TAccumulate
  • func: (accumulate: TAccumulate, current: T, index: number, self: Ix.Enumerable<T>) => TAccumulate
  • resultSelector: (accumulate: TAccumulate) => TResult

Returns

TResult

public aggregate(seed: TAccumulate, func: (accumulate: TAccumulate, current: T, index: number, self: Ix.Enumerable<T>) => TAccumulate): TAccumulate

Parameters

  • seed: TAccumulate
  • func: (accumulate: TAccumulate, current: T, index: number, self: Ix.Enumerable<T>) => TAccumulate

Returns

TAccumulate

public aggregate(func: (accumulate: T, current: T, index: number, self: Ix.Enumerable<T>) => T): T in Ix.Enumerable<T>

Parameters

  • func: (accumulate: T, current: T, index: number, self: Ix.Enumerable<T>) => T

Returns

T in Ix.Enumerable<T>

public all(predicate: EnumerablePredicate, thisArg?: any): boolean

Parameters

Returns

boolean

public any(predicate?: EnumerablePredicate, thisArg?: any): boolean

Parameters

Returns

boolean

public average(selector?: EnumerableFunc): number

Parameters

Returns

number

public bufferWithCount(count: number, skip?: number): Enumerable

Parameters

  • count: number
  • skip?: number optional

Returns

Enumerable

public catch(handler: (error: Error) => Ix.Enumerable<T>): Enumerable

Parameters

  • handler: (error: Error) => Ix.Enumerable<T>

Returns

Enumerable

public catch(second: Enumerable, other?: Enumerable[]): Enumerable

Parameters

Returns

Enumerable

public catchException(handler: (error: Error) => Ix.Enumerable<T>): Enumerable

Parameters

  • handler: (error: Error) => Ix.Enumerable<T>

Returns

Enumerable

public catchException(second: Enumerable, other?: Enumerable[]): Enumerable

Parameters

Returns

Enumerable

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

Parameters

Returns

Enumerable

public contains(value: TValue, comparer: EqualityComparer): boolean

Parameters

Returns

boolean

public contains(value: T in Ix.Enumerable<T>): boolean

Parameters

  • value: T in Ix.Enumerable<T>

Returns

boolean

public count(predicate?: EnumerablePredicate, thisArg?: any): number

Parameters

Returns

number

public defaultIfEmpty(defaultValue?: T in Ix.Enumerable<T>): Enumerable

Parameters

  • defaultValue?: T in Ix.Enumerable<T> optional

Returns

Enumerable

public distinct(comparer?: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public distinctBy(keySelector: (item: T) => TKey, comparer?: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public distinctUntilChanged(keySelector: (item: T) => TKey, comparer?: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public distinctUntilChanged(): Enumerable

Returns

Enumerable

public distinctUntilChanged(_: boolean, comparer: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public do(onNext: (value: T) => void, onError?: (error: Error) => void, onCompleted?: () => void): Enumerable

Parameters

  • onNext: (value: T) => void
  • onError?: (error: Error) => void optional
  • onCompleted?: () => void optional

Returns

Enumerable

public do(onbserver: Observer): Enumerable

Parameters

Returns

Enumerable

public doAction(onNext: (value: T) => void, onError?: (error: Error) => void, onCompleted?: () => void): Enumerable

Parameters

  • onNext: (value: T) => void
  • onError?: (error: Error) => void optional
  • onCompleted?: () => void optional

Returns

Enumerable

public doAction(onbserver: Observer): Enumerable

Parameters

Returns

Enumerable

public elementAt(index: number): T in Ix.Enumerable<T>

Parameters

  • index: number

Returns

T in Ix.Enumerable<T>

public elementAtOrDefault(index: number): T in Ix.Enumerable<T>

Parameters

  • index: number

Returns

T in Ix.Enumerable<T>

public every(predicate: EnumerablePredicate, thisArg?: any): boolean

Parameters

Returns

boolean

public except(second: Enumerable, comparer: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public except(second: Enumerable): Enumerable

Parameters

Returns

Enumerable

public expand(selector: (item: T) => Ix.Enumerable<T>): Enumerable

Parameters

  • selector: (item: T) => Ix.Enumerable<T>

Returns

Enumerable

public filter(selector: EnumerablePredicate, thisArg?: any): Enumerable

Parameters

Returns

Enumerable

public finally(finallyAction: () => void): Enumerable

Parameters

  • finallyAction: () => void

Returns

Enumerable

public finallyDo(finallyAction: () => void): Enumerable

Parameters

  • finallyAction: () => void

Returns

Enumerable

public first(predicate?: Predicate): T in Ix.Enumerable<T>

Parameters

Returns

T in Ix.Enumerable<T>

public firstOrDefault(predicate?: Predicate): T in Ix.Enumerable<T>

Parameters

Returns

T in Ix.Enumerable<T>

public forEach(action: EnumerableFunc, thisArg?: any)

Parameters

public getEnumerator(): Enumerator

Returns

Enumerator

public groupBy(keySelector: (item: T) => TKey, elementSelector: (item: T) => TElement, resultSelector: (key: TKey, values: Ix.Enumerable<TElement>) => TResult, comparer?: EqualityComparer): Enumerable

Parameters

  • keySelector: (item: T) => TKey
  • elementSelector: (item: T) => TElement
  • resultSelector: (key: TKey, values: Ix.Enumerable<TElement>) => TResult
  • comparer?: EqualityComparer optional

Returns

Enumerable

public groupBy(keySelector: (item: T) => TKey, elementSelector: (item: T) => TElement): Enumerable

Parameters

  • keySelector: (item: T) => TKey
  • elementSelector: (item: T) => TElement

Returns

Enumerable

public groupBy(keySelector: (item: T) => TKey): Enumerable

Parameters

  • keySelector: (item: T) => TKey

Returns

Enumerable

public groupBy(keySelector: (item: T) => TKey, elementSelector: (item: T) => TElement, _: boolean, comparer: EqualityComparer): Enumerable

Parameters

  • keySelector: (item: T) => TKey
  • elementSelector: (item: T) => TElement
  • _: boolean
  • comparer: EqualityComparer

Returns

Enumerable

public groupBy(keySelector: (item: T) => TKey, _: boolean, resultSelector: (key: TKey, values: Ix.Enumerable<T>) => TResult, comparer?: EqualityComparer): Enumerable

Parameters

  • keySelector: (item: T) => TKey
  • _: boolean
  • resultSelector: (key: TKey, values: Ix.Enumerable<T>) => TResult
  • comparer?: EqualityComparer optional

Returns

Enumerable

public groupBy(keySelector: (item: T) => TKey, _: boolean, __: boolean, comparer: EqualityComparer): Enumerable

Parameters

  • keySelector: (item: T) => TKey
  • _: boolean
  • __: boolean
  • comparer: EqualityComparer

Returns

Enumerable

public groupJoin(inner: Enumerable, outerKeySelector: (item: T) => TOuterKey, innerKeySelector: (item: TInner) => TInnerKey, resultSelector: (outer: T, innerSequence: Ix.Enumerable<TInner>) => TResult, comparer: EqualityComparer): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (item: T) => TOuterKey
  • innerKeySelector: (item: TInner) => TInnerKey
  • resultSelector: (outer: T, innerSequence: Ix.Enumerable<TInner>) => TResult
  • comparer: EqualityComparer

Returns

Enumerable

public groupJoin(inner: Enumerable, outerKeySelector: (item: T) => TKey, innerKeySelector: (item: TInner) => TKey, resultSelector: (outer: T, innerSequence: Ix.Enumerable<TInner>) => TResult): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (item: T) => TKey
  • innerKeySelector: (item: TInner) => TKey
  • resultSelector: (outer: T, innerSequence: Ix.Enumerable<TInner>) => TResult

Returns

Enumerable

public ignoreElements(): Enumerable

Returns

Enumerable

public intersect(second: Enumerable, comparer: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public intersect(second: Enumerable): Enumerable

Parameters

Returns

Enumerable

public isEmpty(): boolean

Returns

boolean

public join(inner: Enumerable, outerKeySelector: (item: T) => TOuterKey, innerKeySelector: (item: TInner) => TInnerKey, resultSelector: (outer: T, inner: TInner) => TResult, comparer: EqualityComparer): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (item: T) => TOuterKey
  • innerKeySelector: (item: TInner) => TInnerKey
  • resultSelector: (outer: T, inner: TInner) => TResult
  • comparer: EqualityComparer

Returns

Enumerable

public join(inner: Enumerable, outerKeySelector: (item: T) => TKey, innerKeySelector: (item: TInner) => TKey, resultSelector: (outer: T, inner: TInner) => TResult): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (item: T) => TKey
  • innerKeySelector: (item: TInner) => TKey
  • resultSelector: (outer: T, inner: TInner) => TResult

Returns

Enumerable

public last(predicate?: Predicate): T in Ix.Enumerable<T>

Parameters

Returns

T in Ix.Enumerable<T>

public lastOrDefault(predicate?: Predicate): T in Ix.Enumerable<T>

Parameters

Returns

T in Ix.Enumerable<T>

public map(selector: EnumerableFunc, thisArg?: any): Enumerable

Parameters

Returns

Enumerable

public max(): T in Ix.Enumerable<T>

Returns

T in Ix.Enumerable<T>

public max(selector: EnumerableFunc): TResult

Parameters

Returns

TResult

public maxBy(keySelector: (item: T) => TKey, comparer: Comparer): Enumerable

Parameters

  • keySelector: (item: T) => TKey
  • comparer: Comparer

Returns

Enumerable

public maxBy(keySelector: (item: T) => number): Enumerable

Parameters

  • keySelector: (item: T) => number

Returns

Enumerable

public memoize(): Enumerable

Returns

Enumerable

public min(): T in Ix.Enumerable<T>

Returns

T in Ix.Enumerable<T>

public min(selector: EnumerableFunc): TResult

Parameters

Returns

TResult

public minBy(keySelector: (item: T) => TKey, comparer: Comparer): Enumerable

Parameters

  • keySelector: (item: T) => TKey
  • comparer: Comparer

Returns

Enumerable

public minBy(keySelector: (item: T) => number): Enumerable

Parameters

  • keySelector: (item: T) => number

Returns

Enumerable

public onErrorResumeNext(second: Enumerable): Enumerable

Parameters

Returns

Enumerable

public orderBy(keySelector: (item: T) => TKey, comparer?: Comparer): OrderedEnumerable

Parameters

  • keySelector: (item: T) => TKey
  • comparer?: Comparer optional

Returns

OrderedEnumerable

public orderByDescending(keySelector: (item: T) => TKey, comparer?: Comparer): OrderedEnumerable

Parameters

  • keySelector: (item: T) => TKey
  • comparer?: Comparer optional

Returns

OrderedEnumerable

public publish(selector: (source: Ix.Enumerable<T>) => Ix.Enumerable<TResult>): Enumerable

Parameters

  • selector: (source: Ix.Enumerable<T>) => Ix.Enumerable<TResult>

Returns

Enumerable

public publish(): Enumerable

Returns

Enumerable

public reduce(func: (accumulate: T, current: T, index: number, self: Ix.Enumerable<T>) => T): T in Ix.Enumerable<T>

Parameters

  • func: (accumulate: T, current: T, index: number, self: Ix.Enumerable<T>) => T

Returns

T in Ix.Enumerable<T>

public reduce(func: (accumulate: TAccumulate, current: T, index: number, self: Ix.Enumerable<T>) => TAccumulate, seed: TAccumulate): TAccumulate

Parameters

  • func: (accumulate: TAccumulate, current: T, index: number, self: Ix.Enumerable<T>) => TAccumulate
  • seed: TAccumulate

Returns

TAccumulate

public repeat(count?: number): Enumerable

Parameters

  • count?: number optional

Returns

Enumerable

public retry(retryCount?: number): Enumerable

Parameters

  • retryCount?: number optional

Returns

Enumerable

public reverse(): Enumerable

Returns

Enumerable

public scan(seed: TAccumulate, accumulate: (acc: TAccumulate, item: T) => TAccumulate): Enumerable

Parameters

  • seed: TAccumulate
  • accumulate: (acc: TAccumulate, item: T) => TAccumulate

Returns

Enumerable

public scan(accumulate: (acc: T, item: T) => T): Enumerable

Parameters

  • accumulate: (acc: T, item: T) => T

Returns

Enumerable

public select(selector: EnumerableFunc, thisArg?: any): Enumerable

Parameters

Returns

Enumerable

public selectMany(collectionSelector: (item: T, index: number) => Ix.Enumerable<TCollection>, resultSelector: (outer: T, inner: TCollection) => TResult): Enumerable

Parameters

  • collectionSelector: (item: T, index: number) => Ix.Enumerable<TCollection>
  • resultSelector: (outer: T, inner: TCollection) => TResult

Returns

Enumerable

public selectMany(collectionSelector: (item: T, index: number) => Ix.Enumerable<TCollection>): Enumerable

Parameters

  • collectionSelector: (item: T, index: number) => Ix.Enumerable<TCollection>

Returns

Enumerable

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

Parameters

Returns

boolean

public sequenceEqual(second: Enumerable): boolean

Parameters

Returns

boolean

public share(selector: (source: Ix.Enumerable<T>) => Ix.Enumerable<TResult>): Enumerable

Parameters

  • selector: (source: Ix.Enumerable<T>) => Ix.Enumerable<TResult>

Returns

Enumerable

public share(): Enumerable

Returns

Enumerable

public single(predicate?: Predicate): T in Ix.Enumerable<T>

Parameters

Returns

T in Ix.Enumerable<T>

public singleOrDefault(predicate?: Predicate): T in Ix.Enumerable<T>

Parameters

Returns

T in Ix.Enumerable<T>

public skip(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public skipLast(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public skipWhile(selector: EnumerablePredicate, thisArg?: any): Enumerable

Parameters

Returns

Enumerable

public some(predicate?: EnumerablePredicate, thisArg?: any): boolean

Parameters

Returns

boolean

public startWith(values?: Array<T>): Enumerable

Parameters

  • values?: Array<T> optional

Returns

Enumerable

public sum(selector?: EnumerableFunc): number

Parameters

Returns

number

public take(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public takeLast(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public takeWhile(selector: EnumerablePredicate, thisArg?: any): Enumerable

Parameters

Returns

Enumerable

public toArray(): Array<T>

Returns

Array<T>

public toDictionary(keySelector: (item: T) => TKey, elementSelector: (item: T) => TValue, comparer?: EqualityComparer): Dictionary

Parameters

  • keySelector: (item: T) => TKey
  • elementSelector: (item: T) => TValue
  • comparer?: EqualityComparer optional

Returns

Dictionary

public toDictionary(keySelector: (item: T) => TKey): Dictionary

Parameters

  • keySelector: (item: T) => TKey

Returns

Dictionary

public toDictionary(keySelector: (item: T) => TKey, _: boolean, comparer: EqualityComparer): Dictionary

Parameters

Returns

Dictionary

public toLookup(keySelector: (item: T) => TKey, elementSelector: (item: T) => TValue, comparer?: EqualityComparer): Lookup

Parameters

  • keySelector: (item: T) => TKey
  • elementSelector: (item: T) => TValue
  • comparer?: EqualityComparer optional

Returns

Lookup

public toLookup(keySelector: (item: T) => TKey): Lookup

Parameters

  • keySelector: (item: T) => TKey

Returns

Lookup

public toLookup(keySelector: (item: T) => TKey, _: boolean, comparer: EqualityComparer): Lookup

Parameters

Returns

Lookup

public union(second: Enumerable, comparer?: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public where(selector: EnumerablePredicate, thisArg?: any): Enumerable

Parameters

Returns

Enumerable

public zip(right: Enumerable, selector: (left: T, right: TRight) => TResult): Enumerable

Parameters

  • right: Enumerable
  • selector: (left: T, right: TRight) => TResult

Returns

Enumerable