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 funcion for each value. Will stop when an execution returns false.

      Type Parameters

      • T = unknown

      Parameters

      Returns boolean

      false iff f return false for AnyVal execution, otherwise true

    • Returns the reduction of sequence according the reducing function

      Type Parameters

      • T = unknown

      Parameters

      • f: Callback<T>

        a reducing function

      • OptionalinitialValue: T

      Returns T

    • Returns the number of matched items in the sequence

      Returns number

    • Returns the fully realized values of the iterators. The return value will be an array unless lazy.first() was used. The realized values are cached for subsequent calls.

      Type Parameters

      • T

      Returns T[]