FuncType - v0.8.85
GitHub
Preparing search index...
Functor
Interface Functor<A>
Functor type class - supports mapping over wrapped values
Laws:
Identity: fa.map(x => x) ≡ fa
Composition: fa.map(f).map(g) ≡ fa.map(x => g(f(x)))
interface
Functor
<
A
extends
Type
>
{
map
<
B
extends
unknown
>
(
f
:
(
value
:
A
)
=>
B
)
:
Functor
<
B
>
;
}
Type Parameters
A
extends
Type
Hierarchy (
View Summary
)
Functor
Applicative
Index
Methods
map
Methods
map
map
<
B
extends
unknown
>
(
f
:
(
value
:
A
)
=>
B
)
:
Functor
<
B
>
Type Parameters
B
extends
unknown
Parameters
f
:
(
value
:
A
)
=>
B
Returns
Functor
<
B
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
map
GitHub
FuncType - v0.8.85
Loading...
Functor type class - supports mapping over wrapped values
Laws: