core / pragma / PragmaResult / onSuccess /

onSuccess #

inline fun onSuccess(action: (TSuccess) -> Unit): PragmaResult<TSuccess, TFailure>

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