onSuccess

inline fun <T> Resultat<T>.onSuccess(action: (value: T) -> Unit): Resultat<T>

Performs the given action on the encapsulated value if this instance represents success. Returns the original Resultat unchanged.