• Internal

    Create a new generator that yields elements that are the result of "scanning" previous elements

    Type Parameters

    • T

      The element type of the input iterable

    • U

      The element type of the output iterable

    Parameters

    • init: U

      Initial value of the scanner

    • iterable: Iterable<T>

      The input iterable

    • func: BiFunction<U, T, U>

      Combiner of previous value and current element

    Returns Generator<U>

    A new generator with elements from the input iterable that satisfy the predicate.

Generated using TypeDoc