transform

inline fun <E> transform(onSuccess: (T) -> E, onFailure: (Throwable) -> E): E