arrow-core-data / arrow.core / Option / fold
inline fun <R> fold(ifEmpty: () -> R, ifSome: (A) -> R): R
Do you like Arrow?