Preparing search index...
The search index is not available
Houston Common Library
Houston Common Library
@45drives/houston-common-lib
monet
IMonad
Interface IMonad<T>
Basic Monad Interface
interface
IMonad
<
T
>
{
@@type
:
string
;
ap
<
V
>
(
afn
:
monet
.
Applicative
<
(
(
val
:
T
)
=>
V
)
>
)
:
monet
.
Applicative
<
V
>
;
apTo
<
V
>
(
value
:
monet
.
Applicative
<
V
>
)
:
T
extends
(
(
arg
:
V
)
=>
any
)
?
monet
.
Applicative
<
ReturnType
<
T
<
T
>
>
>
:
never
;
bind
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
)
:
monet
.
IMonad
<
V
>
;
chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
)
:
monet
.
IMonad
<
V
>
;
fantasy-land/ap
?
<
V
>
(
afn
:
monet
.
Applicative
<
(
(
val
:
T
)
=>
V
)
>
)
:
monet
.
Applicative
<
V
>
;
fantasy-land/chain
?
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
Chain
<
V
>
)
)
:
monet
.
Chain
<
V
>
;
fantasy-land/map
?
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
monet
.
Functor
<
V
>
;
flatMap
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
)
:
monet
.
IMonad
<
V
>
;
join
<
V
>
(
)
:
monet
.
IMonad
<
V
>
;
map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
monet
.
IMonad
<
V
>
;
takeLeft
(
m
:
monet
.
IMonad
<
T
>
)
:
monet
.
IMonad
<
T
>
;
takeRight
(
m
:
monet
.
IMonad
<
T
>
)
:
monet
.
IMonad
<
T
>
;
}
Type Parameters
T
Hierarchy-Diagram
Legend
interface
public method
Hierarchy (
view full
)
monet
.
Functor
<
T
>
monet
.
Bind
<
T
>
monet
.
Applicative
<
T
>
IMonad
monet
.
Identity
monet
.
Either
monet
.
Validation
monet
.
List
monet
.
NEL
monet
.
IO
monet
.
Reader
monet
.
Free
Index
Properties
@@type
Methods
ap
ap
To
bind
chain
fantasy-
land/ap?
fantasy-
land/chain?
fantasy-
land/map?
flat
Map
join
map
take
Left
take
Right
Properties
@@type
@@type
:
string
Methods
ap
ap
<
V
>
(
afn
:
monet
.
Applicative
<
(
(
val
:
T
)
=>
V
)
>
)
:
monet
.
Applicative
<
V
>
Type Parameters
V
Parameters
afn
:
monet
.
Applicative
<
(
(
val
:
T
)
=>
V
)
>
Returns
monet
.
Applicative
<
V
>
ap
To
ap
To
<
V
>
(
value
:
monet
.
Applicative
<
V
>
)
:
T
extends
(
(
arg
:
V
)
=>
any
)
?
monet
.
Applicative
<
ReturnType
<
T
<
T
>
>
>
:
never
Type Parameters
V
Parameters
value
:
monet
.
Applicative
<
V
>
Returns
T
extends
(
(
arg
:
V
)
=>
any
)
?
monet
.
Applicative
<
ReturnType
<
T
<
T
>
>
>
:
never
bind
bind
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
)
:
monet
.
IMonad
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
(
val
:
T
)
:
monet
.
IMonad
<
V
>
Parameters
val
:
T
Returns
monet
.
IMonad
<
V
>
Returns
monet
.
IMonad
<
V
>
chain
chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
)
:
monet
.
IMonad
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
(
val
:
T
)
:
monet
.
IMonad
<
V
>
Parameters
val
:
T
Returns
monet
.
IMonad
<
V
>
Returns
monet
.
IMonad
<
V
>
Optional
fantasy-
land/ap
fantasy-
land/ap
<
V
>
(
afn
:
monet
.
Applicative
<
(
(
val
:
T
)
=>
V
)
>
)
:
monet
.
Applicative
<
V
>
Type Parameters
V
Parameters
afn
:
monet
.
Applicative
<
(
(
val
:
T
)
=>
V
)
>
Returns
monet
.
Applicative
<
V
>
Optional
fantasy-
land/chain
fantasy-
land/chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
Chain
<
V
>
)
)
:
monet
.
Chain
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
monet
.
Chain
<
V
>
)
(
val
:
T
)
:
monet
.
Chain
<
V
>
Parameters
val
:
T
Returns
monet
.
Chain
<
V
>
Returns
monet
.
Chain
<
V
>
Optional
fantasy-
land/map
fantasy-
land/map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
monet
.
Functor
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
V
)
(
val
:
T
)
:
V
Parameters
val
:
T
Returns
V
Returns
monet
.
Functor
<
V
>
flat
Map
flat
Map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
)
:
monet
.
IMonad
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
monet
.
IMonad
<
V
>
)
(
val
:
T
)
:
monet
.
IMonad
<
V
>
Parameters
val
:
T
Returns
monet
.
IMonad
<
V
>
Returns
monet
.
IMonad
<
V
>
join
join
<
V
>
(
)
:
monet
.
IMonad
<
V
>
Type Parameters
V
Returns
monet
.
IMonad
<
V
>
map
map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
monet
.
IMonad
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
V
)
(
val
:
T
)
:
V
Parameters
val
:
T
Returns
V
Returns
monet
.
IMonad
<
V
>
take
Left
take
Left
(
m
:
monet
.
IMonad
<
T
>
)
:
monet
.
IMonad
<
T
>
Parameters
m
:
monet
.
IMonad
<
T
>
Returns
monet
.
IMonad
<
T
>
take
Right
take
Right
(
m
:
monet
.
IMonad
<
T
>
)
:
monet
.
IMonad
<
T
>
Parameters
m
:
monet
.
IMonad
<
T
>
Returns
monet
.
IMonad
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
@@type
ap
ap
To
bind
chain
fantasy-
land/ap
fantasy-
land/chain
fantasy-
land/map
flat
Map
join
map
take
Left
take
Right
Official Cockpit API Documentation
Houston Common Library
Loading...
Basic Monad Interface