Interface OrderedEnumerable

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 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 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 filter(selector: EnumerablePredicate, thisArg?: any): Enumerable

Parameters

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 intersect(second: Enumerable, comparer: EqualityComparer): Enumerable

Parameters

Returns

Enumerable

public intersect(second: Enumerable): Enumerable

Parameters

Returns

Enumerable

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 min(): T in Ix.Enumerable<T>

Returns

T in Ix.Enumerable<T>

public min(selector: EnumerableFunc): TResult

Parameters

Returns

TResult

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 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 reverse(): Enumerable

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 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 skipWhile(selector: EnumerablePredicate, thisArg?: any): Enumerable

Parameters

Returns

Enumerable

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

Parameters

Returns

boolean

public sum(selector?: EnumerableFunc): number

Parameters

Returns

number

public take(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

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

Parameters

Returns

Enumerable

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

Parameters

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

Returns

OrderedEnumerable

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

Parameters

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

Returns

OrderedEnumerable

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