Sequence ClassA Sandcastle Documented Class Library
Inheritance Hierarchy
System Object
  Sequences Sequence

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public static class Sequence

The Sequence type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAsSequence T 
Creates a sequence from a given enumerable.
Public methodStatic memberContinually T (Func T )
Create an infinite sequence containing the given element expression (which is computed for each occurrence).
Public methodStatic memberContinually T (T)
Create an infinite sequence containing the given element.
Public methodStatic memberDistinct TSource (ISequence TSource )
Returns distinct elements from a sequence by using the default equality comparer to compare values.
Public methodStatic memberDistinct TSource (ISequence TSource , IEqualityComparer TSource )
Public methodStatic memberEmpty T 
Returns an empty sequence.
Public methodStatic memberExcept 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!
Public methodStatic memberExcept 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!
Public methodStatic memberFill T (Func T , Int32)
Creates a finite sequence containing the given element a number of times.
Public methodStatic memberFill T (T, Int32)
Creates a finite sequence containing the given element a number of times.
Public methodStatic memberFlatten TSource (ISequence IEnumerable TSource  )
Concatenates all collections in the source sequence into a single flattened sequence.
Public methodStatic memberFlatten TSource (IEnumerable ISequence TSource  )
Concatenates all sequences in the source collection into a single flattened sequence.
Public methodStatic memberFrom(Int32)
Creates an infinite sequence starting at start and incrementing by 1 in each step.
Public methodStatic memberFrom(Int64)
Creates an infinite sequence starting at start and incrementing by 1 in each step.
Public methodStatic memberFrom(BigInteger)
Creates an infinite sequence starting at start and incrementing by 1 in each step.
Public methodStatic memberFrom(Int32, Int32)
Creates an infinite sequence starting at start and incrementing by step in each step.
Public methodStatic memberFrom(Int64, Int64)
Creates an infinite sequence starting at start and incrementing by step in each step.
Public methodStatic memberFrom(BigInteger, BigInteger)
Creates an infinite sequence starting at start and incrementing by step in each step.
Public methodStatic memberIntersect 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!
Public methodStatic memberIntersect 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!
Public methodStatic memberIterate T (T, Func T, T )
Creates an infinite sequence that repeatedly applies a given function to a start value.
Public methodStatic memberIterate T (T, Int32, Func T, T )
Creates a finite sequence of a given length that repeatedly applies a given function to a start value.
Public methodStatic memberNewBuilder T 
Creates a new sequence builder.
Public methodStatic memberRange(Int32, Int32)
Creates a sequence containing equally spaced values in some integer interval.
Public methodStatic memberRange(Int64, Int64)
Creates a sequence containing equally spaced values in some integer interval.
Public methodStatic memberRange(BigInteger, BigInteger)
Creates a sequence containing equally spaced values in some integer interval.
Public methodStatic memberRange(Int32, Int32, Int32)
Creates a sequence containing equally spaced values in some integer interval.
Public methodStatic memberRange(Int64, Int64, Int64)
Creates a sequence containing equally spaced values in some integer interval.
Public methodStatic memberRange(BigInteger, BigInteger, BigInteger)
Creates a sequence containing equally spaced values in some integer interval.
Public methodStatic memberReverse TSource 
Inverts the order of the elements in a sequence. If the source sequence represents an infinite set or series, this will never return!
Public methodStatic memberSelect TSource, TResult (ISequence TSource , Func TSource, TResult )
Projects each element of a sequence into a new sequence.
Public methodStatic memberSelect 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.
Public methodStatic memberSelectMany TSource, TResult (ISequence TSource , Func TSource, IEnumerable TResult  )
Public methodStatic memberSelectMany 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.
Public methodStatic memberSelectMany 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.
Public methodStatic memberSelectMany 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.
Public methodStatic memberSkip TSource 
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
Public methodStatic memberSkipWhile 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!
Public methodStatic memberSkipWhile 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!
Public methodStatic memberSum(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!
Public methodStatic memberSum(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!
Public methodStatic memberSum 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!
Public methodStatic memberSum 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!
Public methodStatic memberTabulate T 
Creates a sequence obtained by applying a given function over a range of integer values starting at 0.
Public methodStatic memberTake TSource 
Returns a specified number of contiguous elements from the start of a sequence.
Public methodStatic memberTakeWhile TSource (ISequence TSource , Func TSource, Boolean )
Returns elements from a sequence as long as a specified condition is true.
Public methodStatic memberTakeWhile 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.
Public methodStatic memberUnion TSource (ISequence TSource , IEnumerable TSource )
Produces the set union of two sequences by using the default equality comparer.
Public methodStatic memberUnion TSource (ISequence TSource , IEnumerable TSource , IEqualityComparer TSource )
Public methodStatic memberWhere TSource (ISequence TSource , Func TSource, Boolean )
Filters a sequence of values based on a predicate.
Public methodStatic memberWhere 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.
Public methodStatic memberWith T (IEnumerable T )
Creates a sequence from a given enumerable.
Public methodStatic memberWith T ( T )
Creates a sequence from a given array.
Public methodStatic memberZip TFirst, TSecond, TResult 
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
Top
See Also