requireSome

inline fun <T> Option<T>.requireSome(block: () -> Nothing): T

Try to get Some.value or calls block to return or stops the current execution block.

Return

Some.value value.