dnowak
@JvmStatic @JvmName("tryCatch") inline fun <A> catch(recover: (Throwable) -> Unit, f: () -> A): Option<A> = try { Some(f()) } catch (t: Throwable) { recover(t.nonFatalOrThrow()) None }
(Throwable) -> Unit
(Throwable) -> Option<A>
None
Some
timrijckaert
Either.catch { }
Either
handleErrorWith
Exception
Option
side effect
A modern programming language that makes developers happier.