- Preparing search index...
- The search index is not available
refa - v0.12.1
Function removeDeadStates
- removeDeadStates<S, O>(iter: FAIterator<S, Iterable<O>>, select: ((item: O) => S)): FAIterator<S, O[]>
-
Parameters
-
iter: FAIterator<S, Iterable<O>>
-
select: ((item: O) => S)
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.