mingo
    Preparing search index...

    Class Iterator

    A lazy collection iterator yields a single value at a time upon request.

    Index

    Constructors

    Methods

    • Drop a number of values from the sequence

      Parameters

      • n: number

        Number of items to drop greater than 0

      Returns Iterator

    • Execute the callback for each value.

      Type Parameters

      • T = unknown

      Parameters

      Returns boolean

      Returns false if the callback returned false to break the loop, otherwise true.

    • Returns the reduction of sequence according the reducing function

      Type Parameters

      • T = unknown

      Parameters

      • f: Callback<T>

        The reducing function

      • OptionalinitialValue: T

        The initial value

      Returns T

    • Returns the number of matched items in the sequence

      Returns number

    • Retrieves all remaining values from the lazy evaluation and returns them as an array. This method processes the underlying iterator until it is exhausted, storing the results in an internal buffer to ensure subsequent calls return the same data.

      Type Parameters

      • T

      Returns T[]