Arrow
Toggle table of contents
2.0.0
common
Platform filter
common
Switch theme
Search in API
Arrow
arrow-core
/
arrow.core
/
Option
/
Companion
Companion
object
Companion
Members
Functions
catch
Link copied to clipboard
@
JvmStatic
@
JvmName
(
name
=
"tryCatchOrNone"
)
inline
fun
<
A
>
catch
(
f
:
SingletonRaise
<
None
>
.
(
)
->
A
)
:
Option
<
A
>
Ignores exceptions and returns None if one is thrown
@
JvmStatic
@
JvmName
(
name
=
"tryCatch"
)
inline
fun
<
A
>
catch
(
recover
:
(
Throwable
)
->
Option
<
A
>
,
f
:
SingletonRaise
<
None
>
.
(
)
->
A
)
:
Option
<
A
>
from
Nullable
Link copied to clipboard
@
JvmStatic
fun
<
A
>
fromNullable
(
a
:
A
?
)
:
Option
<
A
>
invoke
Link copied to clipboard
@
JvmStatic
operator
fun
<
A
>
invoke
(
a
:
A
)
:
Option
<
A
>