Readonly
keyApplies 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.
Appends a value to the end of the sequence.
The value to append to the sequence.
An IEnumerable
Converts the iterable to an
An IAsyncEnumerable
Converts an iterable to
An IParallelEnumerable
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.
Splits the elements of a sequence into chunks of size at most size.
The maximum size of each chunk.
An IEnumerable
Concatenates two sequences.
The sequence to concatenate to the first sequence.
An IEnumerable
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<TElement>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 elements of an IEnumerable
The value to return if the sequence is empty.
An IEnumerable
Returns distinct elements from a sequence by using the default or specified equality comparer to compare values.
Optional
comparer: IEqualityComparer<TElement>An IEqualityComparer
An IEnumerable
Returns distinct elements from a sequence by using the specified equality comparer to compare values.
An IAsyncEqualityComparer
An IAsyncEnumerable
Performs a specified action on each element of the Iterable
The action to take an each element
A new IEnumerable
Performs a specified action on each element of the Iterable
The async action to take an each element
A new IAsyncEnumerable
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.
Produces the set difference of two sequences by using the comparer provided or EqualityComparer to compare values.
An IEnumerable
Optional
comparer: IEqualityComparer<TElement>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 IEnumerable
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.
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.
No elements in Iteration matching predicate
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.
Groups the elements of a sequence according to a specified key selector function.
A function to extract the key for each element.
An IEnumerable<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 IEnumerable<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 IAsyncEnumerable<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.
A function to extract the key for each element.
An IEqualityComparer
An IAsyncEnumerable<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 and projects the elements for each group by using a specified function.
A function to extract the key for each element.
A function to map each source element to an element in an IGrouping<TKey,TElement>.
An IEnumerable<IGrouping<TKey, TElement>> where each IGrouping<TKey,TElement> object contains a collection of objects of type TElement 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.
A function to map each source element to an element in an IGrouping<TKey,TElement>.
An IEqualityComparer
An IEnumerable<IGrouping<TKey,TElement>> where each IGrouping<TKey,TElement> object contains a collection of objects of type TElement 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 IEnumerable
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 IAsyncEnumerable
Produces the set intersection of two sequences by using the specified IEqualityComparer
An Iterable
Optional
comparer: IEqualityComparer<TElement>An IEqualityComparer
A sequence that contains the elements that form the set intersection of two sequences.
Produces the set intersection of two sequences by using the specified
IAsyncEqualityComparer
An Iterable
An IAsyncEqualityComparer
A sequence that contains the elements that form the set intersection of two sequences.
Correlates the elements of two sequences based on matching keys.
A specified IEqualityComparer
The sequence to join to the first sequence.
A function to extract the join key from each element of 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 two matching elements.
Optional
comparer: IEqualityComparer<TKey>An IEqualityComparer
An IEnumerable
Returns the last element of a sequence. If predicate is specified, the last element of a sequence that satisfies a specified condition.
Optional
predicate: ((x) => boolean)A function to test each element for a condition. Optional.
The value at the last position in the source sequence or the last element in the sequence that passes the test in the specified predicate function.
The source sequence is empty.
Returns the last element of a sequence that satisfies a specified condition.
A function to test each element for a condition.
The last element in the sequence that passes the test in the specified predicate function.
The source sequence is empty.
Returns the last element of a sequence. If predicate is specified, the last element of a sequence that satisfies a specified condition.
Optional
predicate: ((x) => boolean)A function to test each element for a condition. Optional.
The value at the last position in the source sequence or the last element in the sequence that passes the test in the specified predicate function.
Returns the last element of a sequence that satisfies a specified condition.
A function to test each element for a condition.
The last element in the sequence that passes the test in the specified predicate function. Null if no elements.
Returns the maximum value in a sequence of values.
The maximum value in the sequence.
source contains no elements.
Invokes a transform function on each element of a sequence and returns the maximum value.
A transform function to apply to each element.
The maximum value in the sequence.
source contains no elements.
Invokes an async transform function on each element of a sequence and returns the maximum value.
A transform function to apply to each element.
The maximum value in the sequence.
source contains no elements.
Returns the minimum value in a sequence of values.
The minimum value in the sequence.
source contains no elements.
Invokes a transform function on each element of a sequence and returns the minimum value.
A transform function to apply to each element.
The minimum value in the sequence.
source contains no elements.
Invokes a transform function on each element of a sequence and returns the minimum value.
A transform function to apply to each element.
The minimum value in the sequence.
source contains no elements.
Applies a type filter to a source iteration
Either value for typeof or a consturctor function
Values that match the type string or are instance of type
Sorts the elements of a sequence in ascending order by using a specified or default comparer.
Optional
comparer: IComparer<TElement>An IComparer
An IOrderedEnumerable
Sorts the elements of a sequence in ascending order by using a specified or default comparer.
A function to extract a key from an element.
Optional
comparer: IComparer<TKey>An IComparer
An IOrderedEnumerable
Sorts the elements of a sequence in ascending order by using a specified comparer.
An async function to extract a key from an element.
Optional
comparer: IComparer<TKey>An IComparer
An IOrderedAsyncEnumerable
Sorts the elements of a sequence in descending order by using a specified or default comparer.
A function to extract a key from an element.
Optional
comparer: IComparer<TKey>An IComparer
An IOrderedEnumerable
Sorts the elements of a sequence in descending order by using a specified comparer.
An async function to extract a key from an element.
Optional
comparer: IComparer<TKey>An IComparer
An IOrderedAsyncEnumerable
Sorts the elements of a sequence in descending order by using a specified or default comparer.
Optional
comparer: IComparer<TElement>An IComparer
An IOrderedEnumerable
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
Predicate to determine whether a value passes or fails
[values that pass, values that fail]
Adds a value to the beginning of the sequence.
The value to prepend to the sequence.
An IEnumerable
Inverts the order of the elements in a sequence.
A sequence whose elements correspond to those of the input sequence in reverse order.
Projects each element of a sequence into a new form.
A transform function to apply to each element.
An IEnumerable
Projects each element of a sequence into a new form.
A key of TSource.
An IEnumerable
Projects each element of a sequence into a new form.
An async transform function to apply to each element.
An IAsyncEnumerable
Projects each element of a sequence into a new form.
A key of the elements in the sequence
An IAsyncEnumerable
Projects each element of a sequence to an IEnumerable
A transform function to apply to each element.
An IEnumerable
Projects each element of a sequence to an IEnumerable
A string key of TSource.
An IEnumerable
Projects each element of a sequence to an IAsyncEnumerable
A transform function to apply to each element.
An IAsyncEnumerable
Determines whether or not two sequences are equal
second iterable
Optional
comparer: IEqualityComparer<TElement>Compare function to use, by default is
Whether or not the two iterations are equal
Compares two sequences to see if they are equal using an async comparer function.
Second Sequence
Async Comparer
Whether or not the two iterations are equal
Returns the only element of a sequence that satisfies a specified condition (if specified), and throws an exception if more than one such element exists.
Optional
predicate: ((x) => boolean)A function to test an element for a condition. (Optional)
The single element of the input sequence that satisfies a condition.
No element satisfies the condition in predicate. OR More than one element satisfies the condition in predicate. OR The source sequence is empty.
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
A function to test an element for a condition.
The single element of the input sequence that satisfies a condition.
No element satisfies the condition in predicate. OR More than one element satisfies the condition in predicate. OR The source sequence is empty.
If predicate is specified returns the only element of a sequence that satisfies a specified condition, ootherwise returns the only element of a sequence. Returns a default value if no such element exists.
Optional
predicate: ((x) => boolean)A function to test an element for a condition. Optional.
The single element of the input sequence that satisfies the condition, or null if no such element is found.
If predicate is specified more than one element satisfies the condition in predicate, otherwise the input sequence contains more than one element.
Returns the only element of a sequence that satisfies a specified condition. Returns a default value if no such element exists.
A function to test an element for a condition. Optional.
The single element of the input sequence that satisfies the condition, or null if no such element is found.
If predicate is specified more than one element satisfies the condition in predicate, otherwise the input sequence contains more than one element.
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
The number of elements to skip before returning the remaining elements.
An IEnumerable
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The 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 IEnumerable
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The 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 IAsyncEnumerable
Computes the sum of the sequence of numeric values.
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.
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.
The sum of the projected values.
Returns a specified number of contiguous elements from the start of a sequence.
The number of elements to return.
An IEnumerable
Returns elements from a sequence as long as a specified condition is true. The 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 IEnumerable
Returns elements from a sequence as long as a specified condition is true. The 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 IAsyncEnumerable
Converts an Iterable
An async function to serve as a key selector.
A promise for Map<K, V[]>
Converts the Iteration to an Object. Duplicate values will be overriden.
A function to determine the Key based on the value.
KVP Object
Converts the Iteration to an Object. Duplicate values will be overriden.
An async function to determine the Key based on the value.
KVP Object
Produces the set union of two sequences by using scrict equality comparison or a specified IEqualityComparer
An Iterable
Optional
comparer: IEqualityComparer<TElement>The IEqualityComparer
An IEnumerable
Produces the set union of two sequences by using a specified IAsyncEqualityComparer
An Iterable
The IAsyncEqualityComparer
An IAsyncEnumerable
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 IEnumerable
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 IAsyncEnumerable
Creates a tuple of corresponding elements of two sequences, producing a sequence of the results.
The second sequence to merge.
An IEnumerable<[T, Y]> that contains merged elements of two input sequences.
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
The second sequence to merge.
A function that specifies how to merge the elements from the two sequences.
An IEnumerable
Applies a specified async function to the corresponding elements of two sequences, producing a sequence of the results.
The second sequence to merge.
An async function that specifies how to merge the elements from the two sequences.
An IAsyncEnumerable
Generated using TypeDoc
Represents a grouping based on a key