Click or drag to resize

SequenceT, TSelf Class

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

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.8.0+e1037fa8802b3ff162e26559d763b73334940b70
Syntax
C#
public abstract class Sequence<T, TSelf> : BaseSequence<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.
(Inherited from BaseSequenceT, TSelf)
Public propertyItemInt32Gets the value at the specified index.
(Inherited from BaseSequenceT, TSelf)
Public propertyItemRangeGets a range from the sequence.
(Inherited from BaseSequenceT, TSelf)
Top
Methods
 NameDescription
Public methodAllChecks whether the predicate is satisfied by all items.
(Inherited from BaseSequenceT, TSelf)
Public methodAnyChecks whether the predicate is satisfied by at least one item.
(Inherited from BaseSequenceT, TSelf)
Public methodClonePerforms a shallow copy of the sequence and performs a reset.
(Inherited from BaseSequenceT, TSelf)
Public methodContainsChecks if the sequence contains the given value.
(Inherited from BaseSequenceT, TSelf)
Public methodDistinctGets only the unique values in this sequence.
(Inherited from BaseSequenceT, TSelf)
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.
(Inherited from BaseSequenceT, TSelf)
Public methodFirstGets the first value in the sequence.
(Inherited from BaseSequenceT, TSelf)
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.
(Inherited from BaseSequenceT, TSelf)
Public methodLengthGets the total number of values in the sequence.
(Inherited from BaseSequenceT, TSelf)
Public methodMapTransform a sequence acording to the function passed as parameter.
(Inherited from BaseSequenceT, TSelf)
Public methodNextGets the next item in the sequence.
(Inherited from BaseSequenceT, TSelf)
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.
(Inherited from BaseSequenceT, TSelf)
Public methodResetResets the sequence.
(Inherited from BaseSequenceT, TSelf)
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(T)Get the initial values of a sequence until a value is found.
(Inherited from BaseSequenceT, TSelf)
Public methodUntil(FuncT, Boolean)Get the initial values of a sequence until a predicate is satisfied.
(Inherited from BaseSequenceT, TSelf)
Public methodWhileGet the initial values of a sequence that satisfy a predicate.
(Inherited from BaseSequenceT, TSelf)
Public methodZipJoins the common part of two sequence with the help of a lambda.
(Inherited from BaseSequenceT, TSelf)
Top
See Also