moonads
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Either
Identity
constructor
value
ap
bind
equals
fold
get
map
of
Left
Maybe
Monad
Right
Apply
Chain
Functor
Setoid
Transform
is
Nil
Simply wraps a value in a monadic interface.
Type parameters
T
The type of the wrapped value.
Hierarchy
Monad
<
T
>
Identity
Implements
Setoid
<
T
>
Chain
<
T
>
Index
Constructors
constructor
Properties
value
Methods
ap
bind
equals
fold
get
map
of
Constructors
Protected
constructor
new
Identity
(
value
:
T
)
:
Identity
Parameters
value:
T
Returns
Identity
Properties
Protected
value
value
:
T
Methods
ap
ap<V>
(
fm
:
Identity
<
Transform
<
T
,
V
>
>
)
:
Identity
<
V
>
Type parameters
V
Parameters
fm:
Identity
<
Transform
<
T
,
V
>
>
Returns
Identity
<
V
>
bind
bind<V>
(
f
:
Transform
<
T
,
Identity
<
V
>
>
)
:
Identity
<
V
>
Type parameters
V
Parameters
f:
Transform
<
T
,
Identity
<
V
>
>
Returns
Identity
<
V
>
equals
equals<M>
(
m
:
M
)
:
boolean
Type parameters
M
:
Monad
<
T
>
Parameters
m:
M
Returns
boolean
fold
fold<V>
(
f
:
Transform
<
T
,
V
>
)
:
V
Type parameters
V
Parameters
f:
Transform
<
T
,
V
>
Returns
V
get
get
(
)
:
T
Returns
T
map
map<V>
(
f
:
Transform
<
T
,
V
>
)
:
Identity
<
V
>
Type parameters
V
Parameters
f:
Transform
<
T
,
V
>
Returns
Identity
<
V
>
Static
of
of<V>
(
value
:
V
)
:
Identity
<
V
>
Type parameters
V
Parameters
value:
V
Returns
Identity
<
V
>
Generated using
TypeDoc
Simply wraps a value in a monadic interface.