Home Manual Reference Source Repository

Typedef

Static Public Summary
public

ElementAccumulator(T: *, U: *, previousValue: U, currentValue: T, index: currentIndex, sequence: Iterable<T>): U: function

public

ElementConverter(T: *, U: *, element: T, index: number, sequence: Iterable<T>): U: function

public

ElementTest(T: *, element: T, index: number, sequence: Iterable<T>): boolean: function

Static Public

public ElementAccumulator(T: *, U: *, previousValue: U, currentValue: T, index: currentIndex, sequence: Iterable<T>): U: function source

Params:

NameTypeAttributeDescription
T *

The input Iterator element type. NOTE: This is a TypeScript type parameter, not a parameter of the function.

U *

The output Iterator element type. NOTE: This is a TypeScript type parameter, not a parameter of the function.

previousValue U
  • nullable: false

For the first execution either an initialValue, if specified, or the first element in the sequence. Otherwise, an intermediary accumulated value.

currentValue T
  • nullable: false

The iteration element.

index currentIndex
  • nullable: false

The index of the iteration element

sequence Iterable<T>
  • nullable: false

The sequence being iterated

Return:

U

The accumulated value.

public ElementConverter(T: *, U: *, element: T, index: number, sequence: Iterable<T>): U: function source

Params:

NameTypeAttributeDescription
T *

The input Iterator element type. NOTE: This is a TypeScript type parameter, not a parameter of the function.

U *

The output Iterator element type. NOTE: This is a TypeScript type parameter, not a parameter of the function.

element T
  • nullable: false

The iteration element

index number
  • nullable: false

The index of the element

sequence Iterable<T>
  • nullable: false

The sequence being iterated

Return:

U

The converted value.

public ElementTest(T: *, element: T, index: number, sequence: Iterable<T>): boolean: function source

Params:

NameTypeAttributeDescription
T *

The Iterator element type. NOTE: This is a TypeScript type parameter, not a parameter of the function.

element T
  • nullable: false

The iteration element

index number
  • nullable: false

The index of the element

sequence Iterable<T>
  • nullable: false

The sequence being iterated

Return:

boolean

A value indicating whether the specified element passed the test.