Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
The initial accumulator value.
An accumulator function to be invoked on each element.
The final accumulator value.
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
The initial accumulator value.
An accumulator function to be invoked on each element.
A function to transform the final accumulator value into the result value.
The transformed final accumulator value.
Determines whether all elements of a sequence satisfy a condition.
A function to test each element for a condition.
true
if every element of the source sequence passes the test in the specified predicate,
or if the sequence is empty; otherwise, false
.
Determines whether all elements of a sequence satisfy a condition.
An async function to test each element for a condition.
true
if every element of the source sequence passes the test in the specified predicate,
or if the sequence is empty; otherwise, false
.
Determines whether a sequence contains any elements. If predicate is specified, determines whether any element of a sequence satisfies a condition.
Optional
predicate: (x: TSource) => booleanA function to test each element for a condition.
true if the source sequence contains any elements or passes the test specified; otherwise, false.
Determines whether any element of a sequence satisfies a condition.
An async function to test each element for a condition.
true if the source sequence contains any elements or passes the test specified; otherwise, false.
Computes the average of a sequence of number values.
The average of the sequence of values.
Computes the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
A transform function to apply to each element.
The average of the sequence of values.
Computes the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
An async transform function to apply to each element.
The average of the sequence of values.
Determines whether a sequence contains a specified element by
using the specified or default IEqualityComparer
The value to locate in the sequence.
Optional
comparer: IEqualityComparer<TSource>An equality comparer to compare values. Optional.
true if the source sequence contains an element that has the specified value; otherwise, false.
Determines whether a sequence contains a specified element
by using the specified or default IEqualityComparer
The value to locate in the sequence.
An async equality comparer to compare values.
true if the source sequence contains an element that has the specified value; otherwise, false.
Returns the number of elements in a sequence or represents how many elements in the specified sequence satisfy a condition if the predicate is specified.
Optional
predicate: (x: TSource) => booleanA function to test each element for a condition. Optional.
The number of elements in the input sequence.
Returns the number of elements in a sequence or represents how many elements in the specified sequence satisfy a condition if the predicate is specified.
A function to test each element for a condition.
The number of elements in the input sequence.
Returns the element at a specified index in a sequence.
The zero-based index of the element to retrieve.
The element at the specified position in the source sequence.
Returns the element at a specified index in a sequence or a default value if the index is out of range.
The zero-based index of the element to retrieve.
null if the index is outside the bounds of the source sequence; otherwise, the element at the specified position in the source sequence.
Returns first element in sequence that satisfies predicate otherwise returns the first element in the sequence. Returns null if no value found.
Optional
predicate: (x: TSource) => booleanA function to test each element for a condition. Optional.
The first element in the sequence or the first element that passes the test in the specified predicate function. Returns null if no value found.
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
An async function to test each element for a condition.
null if source is empty or if no element passes the test specified by predicate; otherwise, the first element in source that passes the test specified by predicate.
Returns the maximum value in a sequence of values.
Async Iteration of Numbers
Invokes a transform function on each element of a sequence and returns the maximum value.
A transform function to apply to each element.
Invokes an async transform function on each element of a sequence and returns the maximum value.
A transform function to apply to each element.
Returns the minimum value in a sequence of values.
Invokes a transform function on each element of a sequence and returns the minimum value.
A transform function to apply to each element.
Invokes a transform function on each element of a sequence and returns the minimum value.
A transform function to apply to each element.
Computes the sum of the sequence of numeric values.
A promise of the sum of the values in the sequence.
Computes the sum of the sequence of numeric values that are obtained by invoking a transform function on each element of the input sequence.
A transform function to apply to each element.
A promise of the sum of the projected values.
Computes the sum of the sequence of numeric values that are obtained by invoking a transform function on each element of the input sequence.
An async transform function to apply to each element.
A promise of the sum of the projected values.
Creates an array from a IAsyncEnumerable
An array of elements
Converts the async iteration to a Set
A promise for a set containing the iteration values
Common Methods between IAsyncEnumerable and IParallelEnumerable