Class SequenceDataSource

defines a sequence of numbers for our stream input

Hierarchy

  • SequenceDataSource

Implements

Constructors

Properties

Methods

Constructors

Properties

start: number
total: number
value: number

Methods

  • returns the current element, returns the same element as the previous next call if there is no next before current called then we will call next as initial element

    Returns number | ITERATION_STATUS

  • looks ahead cnt without changing the internal data "pointers" of the data source (this is mostly needed by possibly infinite constructs like lazy streams, because they do not know by definition their boundaries)

    Returns

    either the element or ITERATION_STATUS.EO_STRM if we hit the end of the stream before finding the "cnt" element

    Parameters

    • cnt: number = 1

      the elements to look ahead

    Returns number | ITERATION_STATUS

Generated using TypeDoc