onSome (method)
Abstract
on
Some
on
Some
(
f
)
:
Opt
<
T
>
Calls
f
on
Some
with its value, does nothing for
None
.
Parameters
f
:
(
(
x
)
=>
void
)
(
x
)
:
void
Parameters
x
:
T
Returns
void
Returns
Opt
<
T
>
Imperative
Back to index
Calls
f
on Some with its value, does nothing for None.