AIDC Toolkit / Utility / Sequence
Class: Sequence
Defined in: sequence.ts:4
Sequence. Defines an ascending or descending sequence of big integers implemented as an iterable.
Implements
Iterable<bigint>
Constructors
Constructor
new Sequence(
startValue,count):Sequence
Defined in: sequence.ts:45
Constructor.
Parameters
startValue
Start value.
number | bigint
count
number
Count of values. If count is zero or positive, iteration ascends from start value, otherwise it descends from start value.
Returns
Sequence
Accessors
startValue
Get Signature
get startValue():
bigint
Defined in: sequence.ts:64
Get the start value (inclusive).
Returns
bigint
endValue
Get Signature
get endValue():
bigint
Defined in: sequence.ts:71
Get the end value (exclusive).
Returns
bigint
count
Get Signature
get count():
number
Defined in: sequence.ts:78
Get the count of values.
Returns
number
minimumValue
Get Signature
get minimumValue():
bigint
Defined in: sequence.ts:85
Get the minimum value (inclusive).
Returns
bigint
maximumValue
Get Signature
get maximumValue():
bigint
Defined in: sequence.ts:92
Get the maximum value (inclusive).
Returns
bigint
Methods
[iterator]()
[iterator]():
Generator<bigint>
Defined in: sequence.ts:102
Iterable implementation.
Returns
Generator<bigint>
Yields
Next value in sequence.
Implementation of
Iterable.[iterator]