fold
inline fun <R> fold(onSuccess: (A) -> R, onFailure: (String, AuthorizationList.Tagged, Asn1Element) -> R): R(source)
Runs onSuccess for Success or onFailure for Failure.
Note: this function rethrows any Throwable exception thrown by onSuccess or by onFailure function.
Return
Parameters
onSuccess
(A) -> R called with Success.value.
onFailure
(String, AuthorizationList.Tagged, Asn1Element) -> R called with Failure.elementName, tagged, and Failure.rawAsn1Value.