Function withIsFinal

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

    Type Parameters

    • S

    • O

    Parameters

    • iter: FAIterator<S, O>
    • isFinal: ((state: S) => boolean)
        • (state: S): boolean
        • Parameters

          • state: S

          Returns boolean

    Returns FAIterator<S, O>