onSuccess

inline fun onSuccess(action: (T) -> Unit): SolidResult<T>

Runs action on the success value and returns this result unchanged.