Companion

object Companion

Functions

Link copied to clipboard
fun of(initialState: State, hijackStateTransitionCallback: (State, State, Long) -> State = { _, dest, _ -> dest }, onStateTransitionCallback: (State, State, Long) -> Unit = { _, _, _ -> }): SolutionIterator

Creates a hijackable iterator starting from initialState. hijackStateTransitionCallback decides, for each transition, which state is actually entered (by default, the computed destination, i.e. no hijacking); onStateTransitionCallback is then notified of the (possibly hijacked) transition.