run

fun <A> Program<A>.run(): Result<A>(source)

Run a fully handled program, capturing the outcome as a Result: the final value on success, or an IllegalStateException naming the unhandled effect on failure.