SequenceT, TSelf Class

Common base class for all sequences.

Definition

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
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>
Inheritance
Object    SequenceT, TSelf
Derived

Type Parameters

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

Properties

ItemIndexGets the value at the specified index.
ItemInt32Gets the value at the specified index.
ItemRangeGets a range from the sequence.

Methods

AllChecks whether the predicate is satisfied by all items.
AnyChecks whether the predicate is satisfied by at least one item.
ClonePerforms a shallow copy of the sequence and performs a reset.
ContainsChecks if the sequence contains the given value.
DistinctGets only the unique values in this sequence.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FilterTransform a sequence acording to the predicate passed as parameter.
FirstGets the first value in the sequence.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
LastGets the last value in the sequence.
LengthGets the total number of values in the sequence.
MapTransform a sequence acording to the function passed as parameter.
NextGets the next item in the sequence.
PointwiseDivideItem by item division of sequences.
PointwiseMultiplyItem by item multiplication of two sequences.
ProductGets the product of all the values in the sequence.
ReduceReduces a sequence to a single number.
ResetResets the sequence.
SumGets the sum of all the values in the sequence.
ToStringReturns a string that represents the current object.
(Inherited from Object)
Until(FuncT, Boolean)Get the initial values of a sequence until a predicate is satisfied.
Until(T)Get the initial values of a sequence until a value is found.
WhileGet the initial values of a sequence that satisfy a predicate.
ZipJoins the common part of two sequence with the help of a lambda.

See Also