Companion

object Companion

Functions

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

Ignores exceptions and returns None if one is thrown

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