dataOrElse

inline fun <T> Optional<T>.dataOrElse(block: () -> T): T(source)

Returns Optional.data if Optional.dataPresented of this is true, or call block and returns the result of it