Click or drag to resize

SequenceT, TSelf Class

Common base class for all sequences.
Inheritance Hierarchy
SystemObject
  Austra.LibrarySequenceT, TSelf
    Austra.LibraryCSequence
    Austra.LibraryDSequence
    Austra.LibraryNSequence

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
Syntax
C#
public abstract class Sequence<T, TSelf>
where T : struct, new(), Object, IAdditionOperators<T, T, T>, IAdditiveIdentity<T, T>, ISubtractionOperators<T, T, T>, IMultiplyOperators<T, T, T>, IMultiplicativeIdentity<T, T>, IDivisionOperators<T, T, T>
where TSelf : Sequence<T, TSelf>

Type Parameters

T
The type for the returned items.
TSelf
The covariant type of the sequence.

The SequenceT, TSelf type exposes the following members.

Properties
 NameDescription
Public propertyItemIndexGets the value at the specified index.
Public propertyItemInt32Gets the value at the specified index.
Public propertyItemRangeGets a range from the sequence.
Top
Methods
 NameDescription
Public methodAllChecks whether the predicate is satisfied by all items.
Public methodAnyChecks whether the predicate is satisfied by at least one item.
Public methodClonePerforms a shallow copy of the sequence and performs a reset.
Public methodContainsChecks if the sequence contains the given value.
Public methodDistinctGets only the unique values in this sequence.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFilterTransform a sequence acording to the predicate passed as parameter.
Public methodFirstGets the first value in the sequence.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLastGets the last value in the sequence.
Public methodLengthGets the total number of values in the sequence.
Public methodMapTransform a sequence acording to the function passed as parameter.
Public methodNextGets the next item in the sequence.
Public methodPointwiseDivideItem by item division of sequences.
Public methodPointwiseMultiplyItem by item multiplication of two sequences.
Public methodProductGets the product of all the values in the sequence.
Public methodReduceReduces a sequence to a single number.
Public methodResetResets the sequence.
Public methodSumGets the sum of all the values in the sequence.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUntil(FuncT, Boolean)Get the initial values of a sequence until a predicate is satisfied.
Public methodUntil(T)Get the initial values of a sequence until a value is found.
Public methodWhileGet the initial values of a sequence that satisfy a predicate.
Public methodZipJoins the common part of two sequence with the help of a lambda.
Top
See Also