fold

inline fun <Value, Result> CaseMatch<Value>.fold(onNoMatch: () -> Result, onMatched: (Value) -> Result): Result

Folds the exact matching result into an arbitrary value.