onSuccess

infix inline fun <V, E> Result<V, E>.onSuccess(action: (V) -> Unit): Result<V, E>

Invokes an action if this Result is Ok.