Function withGetOut

  • Creates a new iterator that is equivalent to the given iterator with the given getOut function.

    Type Parameters

    • S

    • O

    • T

    Parameters

    • iter: FAIterator<S, O>
    • getOut: ((state: S) => T)
        • (state: S): T
        • Parameters

          • state: S

          Returns T

    • stableOut: boolean = false

    Returns FAIterator<S, T>