Function forEach

  • This will traverse the whole iterator can call the given consumer function (optional) on each reachable state exactly once.

    The order in which states are traversed is implementation-defined.

    Type Parameters

    • S

    Parameters

    • iter: FAIterator<S, Iterable<S>>
    • Optional consumerFn: ((state: S) => void)
        • (state: S): void
        • Parameters

          • state: S

          Returns void

    Returns void