Function removeDeadStates

  • Removes all dead states (and trap states) from the given iterator.

    Note: This will iteratively create a complete copy of the given FA. This method is an expensive operation.

    Type Parameters

    • S

    • O

    Parameters

    • iter: FAIterator<S, Iterable<O>>
    • select: ((item: O) => S)
        • (item: O): S
        • Parameters

          • item: O

          Returns S

    Returns FAIterator<S, O[]>