Applies an accumulator function over a sequence.
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.
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) => boolean)A 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.
source contains no elements.
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.
source contains no elements.
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.
source contains no elements.
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) => boolean)A 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.
index is less than 0 or greater than or equal to the number of elements in source.
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 the first element in a sequence that satisfies a specified condition.
A function to test each element for a condition.
The first element in the sequence that passes the test in the specified predicate function.
No elements in Iteration matching predicate
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) => boolean)A 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.
Async Iteration of Numbers
Sequence contains no elements
Sequence contains no elements
Sequence contains no elements
Sequence contains no elements
Partitions the values into a tuple of failing and passing arrays
Predicate to determine whether a value passes or fails
[values that pass, values that fail]
Partitions the values into a tuple of failing and passing arrays
Async predicate to determine whether a value passes or fails
[values that pass, values that fail]
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.
Converts the async or parallel iteration to a Map<TKey, TSource[]>.
A function to serve as a key selector.
A promise for Map<TKey, TSource[]>
Converts the async or parallel iteration to a Map<TKey, TSource[]>.
An async function to serve as a key selector.
A promise for Map<TKey, TSource[]>
Converts the Iteration to an Object. Duplicate values will be overriden.
A function to determine the Key based on the value.
Promise of KVP Object
Converts the Iteration to an Object. Duplicate values will be overriden.
An async function to determine the Key based on the value.
Promise of KVP Object
Generated using TypeDoc
Common Methods between IAsyncEnumerable and IParallelEnumerable