toggle menu
Arrow
1.2.4
common
switch theme
search in API
arrow-core
/
arrow.core
/
Option
/
Companion
Companion
object
Companion
(
source
)
Members
Functions
catch
Link copied to clipboard
@
JvmStatic
@
JvmName
(
name
=
"tryCatchOrNone"
)
inline
fun
<
A
>
catch
(
f
:
(
)
->
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
:
(
)
->
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
>