Companion

Functions

Link copied to clipboard
@JvmName(name = "tryCatchOrNone")
inline fun <A> catch(f: () -> A): Option<A>

Ignores exceptions and returns None if one is thrown

@JvmName(name = "tryCatch")
inline fun <A> catch(recover: (Throwable) -> Option<A>, f: () -> A): Option<A>
Link copied to clipboard
Link copied to clipboard
operator fun <A> invoke(a: A): Option<A>
Link copied to clipboard
fun <A, B> lift(f: (A) -> B): (Option<A>) -> Option<B>