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.
Appends a value to the end of the sequence.
The value to append to the sequence.
An IParallelEnumerable
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.
Splits the elements of a sequence into chunks of size at most size.
The maximum size of each chunk.
An IParallelEnumerable
Concatenates two async sequences.
The async sequence to concatenate to the first sequence.
An IParallelEnumerable
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 elements of an IParallelEnumerable
An IParallelEnumerable
Returns distinct elements from a sequence by using the default or specified equality comparer to compare values.
Optional
comparer: IEqualityComparer<TSource>An IEqualityComparer
An IParallelEnumerable
Returns distinct elements from a sequence by using the specified equality comparer to compare values.
An IAsyncEqualityComparer
An IParallelEnumerable
Performs a specified action on each element of the IParallelEnumerable
The action to take an each element
A new IParallelEnumerable
Performs a specified action on each element of the IParallelEnumerable
The async action to take an each element
A new IParallelEnumerable
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.
Produces the set difference of two sequences by using the comparer provided or EqualityComparer to compare values.
An IAsyncParallel
Optional
comparer: IEqualityComparer<TSource>An IEqualityComparer
A sequence that contains the set difference of the elements of two sequences.
Produces the set difference of two sequences by using the comparer provided to compare values.
An IAsyncParallel
An IAsyncEqualityComparer
A sequence that contains the set difference of the elements of two sequences.
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.
Groups the elements of a sequence according to a specified key selector function.
An IParallelEnumerable<IGrouping<TKey, TSource>> where each IGrouping<TKey,TElement> object contains a sequence of objects and a key.
Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
A function to extract the key for each element.
An IEqualityComparer
An IParallelEnumerable<IGrouping<TKey, TSource>> where each IGrouping<TKey,TElement> object contains a sequence of objects and a key.
Groups the elements of a sequence according to a specified key selector function.
An IParallelEnumerable<IGrouping<TKey, TSource>> where each IGrouping<TKey,TElement> object contains a sequence of objects and a key.
Groups the elements of a sequence according to a specified key selector function.
An async function to extract the key for each element.
An IEqualityComparer
An IParallelEnumerable<IGrouping<TKey, TSource>> where each IGrouping<TKey,TElement> object contains a sequence of objects and a key.
Correlates the elements of two sequences based on equality of keys and groups the results.
The sequence to join to the first sequence.
The sequence to join to the first sequence.
A function to extract the join key from each element of the second sequence.
A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
Optional
comparer: IEqualityComparer<TKey>To compare keys. Optional.
An IParallelEnumerable
Correlates the elements of two sequences based on equality of keys and groups the results.
The sequence to join to the first sequence. Can be async.
The sequence to join to the first sequence. Can be async.
A function to extract the join key from each element of the second sequence.
A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence. Can be async.
Optional
comparer: IEqualityComparer<TKey>To compare keys. Optional.
An IParallelEnumerable
Optional
comparer: IEqualityComparer<TSource>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.
Sorts the elements of a sequence in ascending order by using a specified or default comparer.
An IOrderedParallelEnumerable
Sorts the elements of a sequence in descending order by using a specified or default comparer.
An IParallelEnumerable
Adds a value to the beginning of the sequence.
The value to prepend to the sequence.
An IParallelEnumerable
Inverts the order of the elements in a sequence.
A sequence whose elements correspond to those of the input sequence in reverse order.
Optional
comparer: IEqualityComparer<TSource>Optional
comparer: IAsyncEqualityComparer<TSource>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
Optional
comparer: IEqualityComparer<TSource>Optional
comparer: IAsyncEqualityComparer<TSource>Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
A function to test each source element for a condition; the second parameter of the function represents the index of the source element.
An IParallelEnumerable
Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
A async function to test each source element for a condition; the second parameter of the function represents the index of the source element.
An IParallelEnumerable
Parallel Async Iterable type with methods from LINQ.