Arrow
1.1.5
common
arrow-core
/
arrow.core
/
Option
/
Companion
Companion
object
Companion
(
source
)
Functions
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
>
lift
Link copied to clipboard
@
JvmStatic
fun
<
A
,
B
>
lift
(
f
:
(
A
)
->
B
)
:
(
Option
<
A
>
)
->
Option
<
B
>