LINQ Extensions - Kalkwst/Risotto GitHub Wiki

AllEqual

Checks if all elements in a sequence are equal. This operator can be provided with a custom predicate to perform on all elements of the sequence before the equality check.

AllUnique

Determines whether all of the elements in the sequence are unique. This operator can be provided with a custom predicate to perform on all elements of the sequence before the equality check.

AtLeast

Determines whether the number of elements in the sequence is at least equal to a given threshold.

AtMost

Determines whether the number of elements in the sequence is at most equal to a given threshold.

Attempt

Asserts that all elements of the sequence are handled properly, otherwise throws an Exception.

Bifurcate

Splits the values of the source sequence into two groups, based on the result of the provided filtering function.

Chunk

Batches the source sequence into sized chunks and optionally applies a projection on each chunk.

Compact

Remove all "falsy" values from the source sequence.

ContainsAll

Determine whether a sequence is contained within another

ContainsAny

Determine whether any element of a sequence is contained within another

CountBetween

Determines whether or not the number of elements in the sequence is between an inclusive range of lower and upper integer limits.

CountBy

Apply a key generating function to each element of a sequence and returns a sequence of unique keys and their number of occurrences in the original sequence.

Difference

Calculates the difference between two arrays, without filtering duplicate values and using an optional custom comparer.

DifferenceBy

Returns the difference between two sequences, after applying the provided transformer function to each element of both.

DistinctBy

Returns all distinct elements of the given source, where distinctiveness is determined by a transformation.

EndsWith

Determines whether the end of the first sequence is equivalent to the second sequence, optionally using a custom equality comparer.

EveryNth

Returns every nth element in the sequence.

Exactly

Determines whether or not the number of elements in the sequence is equal to the given limit.

Index

Returns a sequence of KeyValue pairs where the key is the zero-based index of the value in the source sequence.

Slice

Extracts a section of the calling sequence and returns a new sequence.

TakeLast

Returns the specified number of contiguous elements from the end of a sequence.