Function iterateStates

  • Iterates all states reachable from the initial state of the given iterator in BFS order.

    The returned iterable cannot be empty and will always contain the initial state.

    Type Parameters

    • S

    Parameters

    Returns Iterable<S>