execute

fun execute(value: V, transition: Transition<ID, V, S>): Result<V>

Executes the given transition on the provided value.

Return

A Result containing either the transitioned value or an error

Parameters

value

The value to transition

transition

The transition to execute