Click or drag to resize

NSequence Methods

The NSequence type exposes the following members.

Methods
 NameDescription
Public methodAllChecks whether the predicate is satisfied by all items.
(Inherited from SequenceT, TSelf)
Public methodAnyChecks whether the predicate is satisfied by at least one item.
(Inherited from SequenceT, TSelf)
Public methodClonePerforms a shallow copy of the sequence and performs a reset.
(Inherited from SequenceT, TSelf)
Public methodContainsChecks if the sequence contains the given value.
(Inherited from SequenceT, TSelf)
Public methodStatic memberCreate(NVector)Creates a sequence from a vector.
Public methodStatic memberCreate(Int32, Int32)Creates a sequence from a range.
Public methodStatic memberCreate(Int32, Int32, Int32)Creates a sequence from a range and a step.
Public methodDistinctGets only the unique values in this sequence.
(Overrides SequenceT, TSelfDistinct)
Public methodEquals(NSequence)Checks if two sequence has the same length and arguments.
Public methodEquals(Object)Checks if the provided argument is a sequence with the same values.
(Overrides ObjectEquals(Object))
Public methodFilterTransform a sequence acording to the predicate passed as parameter.
(Overrides SequenceT, TSelfFilter(FuncT, Boolean))
Public methodFirstGets the first value in the sequence.
(Inherited from SequenceT, TSelf)
Public methodGetHashCodeReturns the hashcode for this vector.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLastGets the last value in the sequence.
(Inherited from SequenceT, TSelf)
Public methodLengthGets the total number of values in the sequence.
(Inherited from SequenceT, TSelf)
Public methodLongProductGets the product of all the values in the sequence as a long integer.
Public methodMapTransform a sequence acording to the function passed as parameter.
(Overrides SequenceT, TSelfMap(FuncT, T))
Public methodMapRealCreates a real sequence acording to the function passed as parameter.
Public methodMaxGets the maximum value from the sequence.
Public methodMinGets the minimum value from the sequence.
Public methodNextGets the next item in the sequence.
(Inherited from SequenceT, TSelf)
Public methodPlotCreates a plot for this sequence.
Public methodPointwiseDivideItem by item division of sequences.
(Overrides SequenceT, TSelfPointwiseDivide(TSelf))
Public methodPointwiseMultiplyItem by item multiplication of two sequences.
(Overrides SequenceT, TSelfPointwiseMultiply(TSelf))
Public methodProductGets the product of all the values in the sequence.
(Inherited from SequenceT, TSelf)
Public methodStatic memberRandom(Int32)Creates a sequence from random values.
Public methodStatic memberRandom(Int32, Int32)Creates a sequence from random values.
Public methodStatic memberRandom(Int32, Int32, Int32)Creates a sequence from random values inside an interval.
Public methodReduceReduces a sequence to a single number.
(Inherited from SequenceT, TSelf)
Public methodStatic memberRepeatCreates a sequence by repeating a value a given number of times.
Public methodResetResets the sequence.
(Inherited from SequenceT, TSelf)
Public methodSortSorts the content of this sequence.
Public methodSortDescendingSorts the content of this sequence in descending order.
Public methodStatsGets all statistics from the values in the secuence.
Public methodSumGets the sum of all the values in the sequence.
(Inherited from SequenceT, TSelf)
Public methodToStringEvaluated the sequence and formats it like a NVector.
(Overrides ObjectToString)
Public methodToString(String, IFormatProvider)Gets a textual representation of this sequence.
Public methodToVectorConverts this sequence into an integer vector.
Public methodStatic memberUnfold(Int32, Int32, FuncInt32, Int32, Int32)Creates a sequence by unfolding an initial state by a function.
Public methodStatic memberUnfold(Int32, Int32, FuncInt32, Int32)Creates a sequence by unfolding an initial state by a function.
Public methodStatic memberUnfold(Int32, Int32, Int32, FuncInt32, Int32, Int32)Creates a sequence by unfolding an initial state by a function.
Public methodUntil(FuncInt32, Boolean)Get the initial values of a sequence until a predicate is satisfied.
(Overrides SequenceT, TSelfUntil(FuncT, Boolean))
Public methodUntil(Int32)Get the initial values of a sequence until a value is found.
(Overrides SequenceT, TSelfUntil(T))
Public methodWhileGet the initial values of a sequence that satisfy a predicate.
(Overrides SequenceT, TSelfWhile(FuncT, Boolean))
Public methodZipJoins the common part of two sequence with the help of a lambda.
(Overrides SequenceT, TSelfZip(TSelf, FuncT, T, T))
Top
See Also