The Sequence type exposes the following members.
Methods
Name | Description | |
---|---|---|
AsSequence T |
Creates a sequence from a given enumerable.
| |
Continually T (Func T ) |
Create an infinite sequence containing the given element expression (which is computed for each occurrence).
| |
Continually T (T) |
Create an infinite sequence containing the given element.
| |
Distinct TSource (ISequence TSource ) |
Returns distinct elements from a sequence by using the default equality comparer to compare values.
| |
Distinct TSource (ISequence TSource , IEqualityComparer TSource ) |
Returns distinct elements from a sequence by using a specified IEqualityComparer T to compare values.
| |
Empty T |
Returns an empty sequence.
| |
Except TSource (ISequence TSource , IEnumerable TSource ) |
Produces the set difference of two sequences by using the default equality comparer to compare values.
If the second sequence represents an infinite set or series, this will never return!
| |
Except TSource (ISequence TSource , IEnumerable TSource , IEqualityComparer TSource ) |
Produces the set difference of two sequences by using the specified IEqualityComparer T to compare values.
If the second sequence represents an infinite set or series, this will never return!
| |
Fill T (Func T , Int32) |
Creates a finite sequence containing the given element a number of times.
| |
Fill T (T, Int32) |
Creates a finite sequence containing the given element a number of times.
| |
Flatten TSource (ISequence IEnumerable TSource ) |
Concatenates all collections in the source sequence into a single flattened sequence.
| |
Flatten TSource (IEnumerable ISequence TSource ) |
Concatenates all sequences in the source collection into a single flattened sequence.
| |
From(Int32) |
Creates an infinite sequence starting at start and incrementing by 1 in each step.
| |
From(Int64) |
Creates an infinite sequence starting at start and incrementing by 1 in each step.
| |
From(BigInteger) |
Creates an infinite sequence starting at start and incrementing by 1 in each step.
| |
From(Int32, Int32) |
Creates an infinite sequence starting at start and incrementing by step in each step.
| |
From(Int64, Int64) |
Creates an infinite sequence starting at start and incrementing by step in each step.
| |
From(BigInteger, BigInteger) |
Creates an infinite sequence starting at start and incrementing by step in each step.
| |
Intersect TSource (ISequence TSource , IEnumerable TSource ) |
Produces the set intersection of two sequences by using the default equality comparer to compare values.
If the second sequence represents an infinite set or series, this will never return!
| |
Intersect TSource (ISequence TSource , IEnumerable TSource , IEqualityComparer TSource ) |
Produces the set intersection of two sequences by using the specified IEqualityComparer T to compare values.
If the second sequence represents an infinite set or series, this will never return!
| |
Iterate T (T, Func T, T ) |
Creates an infinite sequence that repeatedly applies a given function to a start value.
| |
Iterate T (T, Int32, Func T, T ) |
Creates a finite sequence of a given length that repeatedly applies a given function to a start value.
| |
NewBuilder T |
Creates a new sequence builder.
| |
Range(Int32, Int32) |
Creates a sequence containing equally spaced values in some integer interval.
| |
Range(Int64, Int64) |
Creates a sequence containing equally spaced values in some integer interval.
| |
Range(BigInteger, BigInteger) |
Creates a sequence containing equally spaced values in some integer interval.
| |
Range(Int32, Int32, Int32) |
Creates a sequence containing equally spaced values in some integer interval.
| |
Range(Int64, Int64, Int64) |
Creates a sequence containing equally spaced values in some integer interval.
| |
Range(BigInteger, BigInteger, BigInteger) |
Creates a sequence containing equally spaced values in some integer interval.
| |
Reverse TSource |
Inverts the order of the elements in a sequence.
If the source sequence represents an infinite set or series, this will never return!
| |
Select TSource, TResult (ISequence TSource , Func TSource, TResult ) |
Projects each element of a sequence into a new sequence.
| |
Select TSource, TResult (ISequence TSource , Func TSource, Int32, TResult ) |
Projects each element of a sequence into a new sequence.
Each element's index is used in the logic of the selector function.
| |
SelectMany TSource, TResult (ISequence TSource , Func TSource, IEnumerable TResult ) |
Projects each element of a sequence to an IEnumerable T and flattens the resulting enumerables into one sequence.
| |
SelectMany TSource, TResult (ISequence TSource , Func TSource, Int32, IEnumerable TResult ) |
Projects each element of a sequence to an IEnumerable T and flattens the resulting enumerables into one sequence.
The index of each source element is used in the projected form of that element.
| |
SelectMany TSource, TCollection, TResult (ISequence TSource , Func TSource, IEnumerable TCollection , Func TSource, TCollection, TResult ) |
Projects each element of a sequence to an IEnumerable T , flattens the resulting enumerables into one sequence, and invokes a result selector function on each element therein.
| |
SelectMany TSource, TCollection, TResult (ISequence TSource , Func TSource, Int32, IEnumerable TCollection , Func TSource, TCollection, TResult ) |
Projects each element of a sequence to an IEnumerable T , flattens the resulting enumerables into one sequence, and invokes a result selector function on each element therein.
The index of each source element is used in the intermediate projected form of that element.
| |
Skip TSource |
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
| |
SkipWhile TSource (ISequence TSource , Func TSource, Boolean ) |
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
If the source sequence represents an infinite set or series and all elements satisfy the given condition, this will never return!
| |
SkipWhile TSource (ISequence TSource , Func TSource, Int32, Boolean ) |
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.
If the source sequence represents an infinite set or series and all elements satisfy the given condition, this will never return!
| |
Sum(ISequence Nullable BigInteger ) |
Computes the sum of a sequence of Nullable T values.
If the source sequence represents an infinite set or series, this will never return!
| |
Sum(ISequence BigInteger ) |
Computes the sum of a sequence of BigInteger values.
If the source sequence represents an infinite set or series, this will never return!
| |
Sum TSource (ISequence TSource , Func TSource, Nullable BigInteger ) |
Computes the sum of the sequence of Nullable T values that are obtained by invoking a transform function on each element of the input sequence.
If the source sequence represents an infinite set or series, this will never return!
| |
Sum TSource (ISequence TSource , Func TSource, BigInteger ) |
Computes the sum of the sequence of BigInteger values that are obtained by invoking a transform function on each element of the input sequence.
If the source sequence represents an infinite set or series, this will never return!
| |
Tabulate T |
Creates a sequence obtained by applying a given function over a range of integer values starting at 0.
| |
Take TSource |
Returns a specified number of contiguous elements from the start of a sequence.
| |
TakeWhile TSource (ISequence TSource , Func TSource, Boolean ) |
Returns elements from a sequence as long as a specified condition is true.
| |
TakeWhile TSource (ISequence TSource , Func TSource, Int32, Boolean ) |
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.
| |
Union TSource (ISequence TSource , IEnumerable TSource ) |
Produces the set union of two sequences by using the default equality comparer.
| |
Union TSource (ISequence TSource , IEnumerable TSource , IEqualityComparer TSource ) |
Produces the set union of two sequences by using a specified IEqualityComparer T .
| |
Where TSource (ISequence TSource , Func TSource, Boolean ) |
Filters a sequence of values based on a predicate.
| |
Where TSource (ISequence TSource , Func TSource, Int32, Boolean ) |
Filters a sequence of values based on a predicate.
Each element's index is used in the logic of the predicate function.
| |
With T (IEnumerable T ) |
Creates a sequence from a given enumerable.
| |
With T ( T ) |
Creates a sequence from a given array.
| |
Zip TFirst, TSecond, TResult |
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
|
See Also