Readonly isReadonly lengthGets the number of elements contained in the ICollection
Returns true if all the items match the predicate, otherwise false
Returns true if any of the items match the predicate, otherwise false
Optional predicate: Predicate<T>if (myEnumerable.any()) {
// do something because the enumerable has elements
}
let myEnumerable = new ArrayEnumerable([1, 2, 3, 4]);
if (myEnumerable.any((i) => i == 2)) {
// the enumerable contains a '2'
}
Adds a value to the end of the sequence.
Returns the average of the numbers selected by the selector
Concatenates two sequences.
Copies the elements of the ICollection
The one-dimensional Array that is the destination of the elements copied from ICollection
The zero-based index in array at which copying begins.
Returns the unique items designated by the selector
Removes all elements in the specified collection from the current set.
The collection of items to remove from the set.
Returns the first item in the enumerable
Returns the first item in the enumerable that matches the predicate
Returns the first item in the enumerable or null
Returns the first item in the enumerable that matches the predicate or null
returns an Enumerator for the items
Groups the items by the key selector using the default comparer
Groups the items by the key selector using the specified comparer
Modifies the current set so that it contains only elements that are also in a specified collection.
The collection to compare to the current set.
Determines whether a set is a subset of a specified collection.
The collection to compare to the current set.
true if the current set is a subset of other; otherwise, false.
Determines whether the current set is a superset of a specified collection.
The collection to compare to the current set.
true if the current set is a superset of other; otherwise, false.
Returns the item at the specified index
The index of the item to return
Returns the last item in the enumerable
Returns the last item in the enumerable that matches the predicate
Returns the last item in the enumerable or null
Returns the last item in the enumerable that matches the predicate or null
Returns the largest number designated by the selector
Returns the smallest number designated by the selector
Returns an enumerable of items that match the type
the type
Orders the enumerable by the the selector and optional comparer ascending
Orders the enumerable by the the selector and optional comparer descending
Determines whether the current set overlaps with the specified collection.
The collection to compare to the current set.
true if the current set and other share at least one common element; otherwise, false.
Adds a value to the beginning of the sequence.
Selects the items by the selector
Determines whether the current set and the specified collection contain the same elements.
The collection to compare to the current set.
true if the current set is equal to other; otherwise, false.
Returns a single element only if there is one element in the enumerable
InvalidOperationException if there is not exactly one item in the enumerable
Returns a single element only if there is one element in the enumerable that matches the predicate
InvalidOperationException if there is not exactly one item in the enumerable that matches the predicate
Returns a single element only if there is one element in the enumerable. If there are no items in the enumerable, then null is returned
InvalidOperationException if there is not exactly one or zero items in the enumerable
Returns a single element only if there is one element in the enumerable that matches the predicate. If there are no items in the enumerable, then null is returned
InvalidOperationException if there is not exactly one or zero item in the enumerable that matches the predicate
Skips the number of items specified. If the count is larger than the size of the enumerable, no items will be returned.
the number of items to skip
Splits a enumerable into two queryables. One set is for true predicates, the other set is for false predicates.
Sums the items in the enumerable using the selector
selector to return the number to be summed
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Takes the number of specified items from the enumerable. If the count is larger than the size of the enumerable, all items will be returned
the number of items to take.
Returns a dictionary based on the key and value selctors
Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both.
The collection to compare to the current set.
Filters the enumerable by the predicate
the filter for each item.
Generated using TypeDoc
Gets a value indicating whether the ICollection is read-only.