fold

inline fun <R> fold(onSuccess: (T) -> R, onFailure: (SolidError) -> R): R

Collapses both variants to a single R.