@mikuroxina/mini-fn
Preparing search index...
Result
map
Function map
map
<
T
,
U
>
(
fn
:
(
t
:
T
)
=>
U
)
:
<
E
>
(
res
:
Result
.
Result
<
E
,
T
>
)
=>
Result
.
Result
<
E
,
U
>
Maps the function onto
Result<E, _>
.
Type Parameters
T
U
Parameters
fn
:
(
t
:
T
)
=>
U
The function from
T
to
U
.
Returns
<
E
>
(
res
:
Result
.
Result
<
E
,
T
>
)
=>
Result
.
Result
<
E
,
U
>
The mapped function.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@mikuroxina/mini-fn
Loading...
Maps the function onto
Result<E, _>.