Preparing search index...
The search index is not available
Houston Common Library
Houston Common Library
@45drives/houston-common-lib
monet
NEL
Interface NEL<T>
NEL
interface
NEL
<
T
>
{
@@type
:
string
;
[iterator]
(
)
:
Iterator
<
T
,
any
,
undefined
>
;
ap
<
V
>
(
listFn
:
monet
.
NEL
<
(
(
val
:
T
)
=>
V
)
>
)
:
monet
.
NEL
<
V
>
;
apTo
<
V
>
(
listVal
:
monet
.
NEL
<
V
>
)
:
T
extends
(
(
arg
:
V
)
=>
any
)
?
monet
.
NEL
<
ReturnType
<
T
<
T
>
>
>
:
never
;
append
(
list
:
monet
.
NEL
<
T
>
)
:
monet
.
NEL
<
T
>
;
bind
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
)
:
monet
.
NEL
<
V
>
;
chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
)
:
monet
.
NEL
<
V
>
;
cobind
<
V
>
(
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
)
:
monet
.
NEL
<
V
>
;
coflatMap
<
V
>
(
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
)
:
monet
.
NEL
<
V
>
;
cojoin
(
)
:
monet
.
NEL
<
monet
.
NEL
<
T
>
>
;
concat
(
list
:
monet
.
NEL
<
T
>
)
:
monet
.
NEL
<
T
>
;
cons
(
a
:
T
)
:
monet
.
NEL
<
T
>
;
contains
(
val
:
T
)
:
boolean
;
copure
(
)
:
T
;
equals
(
other
:
monet
.
NEL
<
T
>
)
:
boolean
;
every
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
;
exists
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
;
extract
(
)
:
T
;
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/equals
?
(
other
:
monet
.
NEL
<
T
>
)
:
boolean
;
fantasy-land/map
?
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
monet
.
Functor
<
V
>
;
filter
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
monet
.
List
<
T
>
;
filterNot
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
monet
.
List
<
T
>
;
find
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
monet
.
Maybe
<
T
>
;
flatMap
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
)
:
monet
.
NEL
<
V
>
;
flatten
<
V
>
(
)
:
T
extends
monet
.
List
<
V
>
|
monet
.
NEL
<
V
>
?
monet
.
List
<
V
>
:
never
;
flattenMaybe
<
V
>
(
)
:
T
extends
monet
.
Maybe
<
V
>
?
monet
.
List
<
V
>
:
never
;
foldLeft
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
acc
:
V
,
val
:
T
)
=>
V
)
)
=>
V
)
;
foldRight
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
val
:
T
,
acc
:
V
)
=>
V
)
)
=>
V
)
;
forEach
(
fn
:
(
(
val
:
T
)
=>
void
)
)
:
void
;
forall
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
;
head
(
)
:
T
;
isNEL
(
)
:
boolean
;
join
<
V
>
(
)
:
monet
.
NEL
<
V
>
;
lookup
(
i
:
number
)
:
monet
.
Maybe
<
T
>
;
map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
monet
.
NEL
<
V
>
;
mapTails
<
V
>
(
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
)
:
monet
.
NEL
<
V
>
;
nth
(
i
:
number
)
:
undefined
|
T
;
reduceLeft
(
fn
:
(
(
acc
:
T
,
element
:
T
)
=>
T
)
)
:
T
;
reverse
(
)
:
monet
.
NEL
<
T
>
;
size
(
)
:
number
;
snoc
(
a
:
T
)
:
monet
.
NEL
<
T
>
;
tail
(
)
:
monet
.
List
<
T
>
;
tails
(
)
:
monet
.
NEL
<
monet
.
NEL
<
T
>
>
;
takeLeft
<
V
>
(
m
:
monet
.
NEL
<
V
>
)
:
monet
.
NEL
<
T
>
;
takeRight
<
V
>
(
m
:
monet
.
NEL
<
V
>
)
:
monet
.
NEL
<
V
>
;
to
<
I
extends
Iterable
<
T
>
>
(
ctor
:
(
(
iter
:
Iterable
<
T
>
)
=>
I
)
)
:
I
;
toArray
(
)
:
T
[]
;
toList
(
)
:
monet
.
List
<
T
>
;
toSet
(
)
:
Set
<
T
>
;
}
Type Parameters
T
Hierarchy-Diagram
Legend
interface
public method
Hierarchy (
view full
)
monet
.
IMonad
<
T
>
monet
.
Setoid
<
monet
.
NEL
<
T
>
>
monet
.
ITraversable
<
T
>
Iterable
<
T
>
NEL
Index
Properties
@@type
Methods
[iterator]
ap
ap
To
append
bind
chain
cobind
coflat
Map
cojoin
concat
cons
contains
copure
equals
every
exists
extract
fantasy-
land/ap?
fantasy-
land/chain?
fantasy-
land/equals?
fantasy-
land/map?
filter
filter
Not
find
flat
Map
flatten
flatten
Maybe
fold
Left
fold
Right
for
Each
forall
head
isNEL
join
lookup
map
map
Tails
nth
reduce
Left
reverse
size
snoc
tail
tails
take
Left
take
Right
to
to
Array
to
List
to
Set
Properties
@@type
@@type
:
string
Methods
[iterator]
[iterator]
(
)
:
Iterator
<
T
,
any
,
undefined
>
Returns
Iterator
<
T
,
any
,
undefined
>
ap
ap
<
V
>
(
listFn
:
monet
.
NEL
<
(
(
val
:
T
)
=>
V
)
>
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
listFn
:
monet
.
NEL
<
(
(
val
:
T
)
=>
V
)
>
Returns
monet
.
NEL
<
V
>
ap
To
ap
To
<
V
>
(
listVal
:
monet
.
NEL
<
V
>
)
:
T
extends
(
(
arg
:
V
)
=>
any
)
?
monet
.
NEL
<
ReturnType
<
T
<
T
>
>
>
:
never
Type Parameters
V
Parameters
listVal
:
monet
.
NEL
<
V
>
Returns
T
extends
(
(
arg
:
V
)
=>
any
)
?
monet
.
NEL
<
ReturnType
<
T
<
T
>
>
>
:
never
append
append
(
list
:
monet
.
NEL
<
T
>
)
:
monet
.
NEL
<
T
>
Parameters
list
:
monet
.
NEL
<
T
>
Returns
monet
.
NEL
<
T
>
bind
bind
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
(
val
:
T
)
:
monet
.
NEL
<
V
>
Parameters
val
:
T
Returns
monet
.
NEL
<
V
>
Returns
monet
.
NEL
<
V
>
chain
chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
(
val
:
T
)
:
monet
.
NEL
<
V
>
Parameters
val
:
T
Returns
monet
.
NEL
<
V
>
Returns
monet
.
NEL
<
V
>
cobind
cobind
<
V
>
(
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
(
val
:
monet
.
NEL
<
T
>
)
:
V
Parameters
val
:
monet
.
NEL
<
T
>
Returns
V
Returns
monet
.
NEL
<
V
>
coflat
Map
coflat
Map
<
V
>
(
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
(
val
:
monet
.
NEL
<
T
>
)
:
V
Parameters
val
:
monet
.
NEL
<
T
>
Returns
V
Returns
monet
.
NEL
<
V
>
cojoin
cojoin
(
)
:
monet
.
NEL
<
monet
.
NEL
<
T
>
>
Returns
monet
.
NEL
<
monet
.
NEL
<
T
>
>
concat
concat
(
list
:
monet
.
NEL
<
T
>
)
:
monet
.
NEL
<
T
>
Parameters
list
:
monet
.
NEL
<
T
>
Returns
monet
.
NEL
<
T
>
cons
cons
(
a
:
T
)
:
monet
.
NEL
<
T
>
Parameters
a
:
T
Returns
monet
.
NEL
<
T
>
contains
contains
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
copure
copure
(
)
:
T
Returns
T
equals
equals
(
other
:
monet
.
NEL
<
T
>
)
:
boolean
Parameters
other
:
monet
.
NEL
<
T
>
Returns
boolean
every
every
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
Parameters
fn
:
(
(
e
:
T
)
=>
boolean
)
(
e
:
T
)
:
boolean
Parameters
e
:
T
Returns
boolean
Returns
boolean
exists
exists
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
Parameters
fn
:
(
(
e
:
T
)
=>
boolean
)
(
e
:
T
)
:
boolean
Parameters
e
:
T
Returns
boolean
Returns
boolean
extract
extract
(
)
:
T
Returns
T
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/equals
fantasy-
land/equals
(
other
:
monet
.
NEL
<
T
>
)
:
boolean
Parameters
other
:
monet
.
NEL
<
T
>
Returns
boolean
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
>
filter
filter
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
monet
.
List
<
T
>
Parameters
fn
:
(
(
val
:
T
)
=>
boolean
)
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
Returns
monet
.
List
<
T
>
filter
Not
filter
Not
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
monet
.
List
<
T
>
Parameters
fn
:
(
(
val
:
T
)
=>
boolean
)
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
Returns
monet
.
List
<
T
>
find
find
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
monet
.
Maybe
<
T
>
Parameters
fn
:
(
(
val
:
T
)
=>
boolean
)
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
Returns
monet
.
Maybe
<
T
>
flat
Map
flat
Map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
monet
.
NEL
<
V
>
)
(
val
:
T
)
:
monet
.
NEL
<
V
>
Parameters
val
:
T
Returns
monet
.
NEL
<
V
>
Returns
monet
.
NEL
<
V
>
flatten
flatten
<
V
>
(
)
:
T
extends
monet
.
List
<
V
>
|
monet
.
NEL
<
V
>
?
monet
.
List
<
V
>
:
never
Type Parameters
V
Returns
T
extends
monet
.
List
<
V
>
|
monet
.
NEL
<
V
>
?
monet
.
List
<
V
>
:
never
flatten
Maybe
flatten
Maybe
<
V
>
(
)
:
T
extends
monet
.
Maybe
<
V
>
?
monet
.
List
<
V
>
:
never
Type Parameters
V
Returns
T
extends
monet
.
Maybe
<
V
>
?
monet
.
List
<
V
>
:
never
fold
Left
fold
Left
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
acc
:
V
,
val
:
T
)
=>
V
)
)
=>
V
)
Type Parameters
V
Parameters
initial
:
V
Returns
(
(
fn
:
(
(
acc
:
V
,
val
:
T
)
=>
V
)
)
=>
V
)
(
fn
:
(
(
acc
:
V
,
val
:
T
)
=>
V
)
)
:
V
Parameters
fn
:
(
(
acc
:
V
,
val
:
T
)
=>
V
)
(
acc
:
V
,
val
:
T
)
:
V
Parameters
acc
:
V
val
:
T
Returns
V
Returns
V
fold
Right
fold
Right
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
val
:
T
,
acc
:
V
)
=>
V
)
)
=>
V
)
Type Parameters
V
Parameters
initial
:
V
Returns
(
(
fn
:
(
(
val
:
T
,
acc
:
V
)
=>
V
)
)
=>
V
)
(
fn
:
(
(
val
:
T
,
acc
:
V
)
=>
V
)
)
:
V
Parameters
fn
:
(
(
val
:
T
,
acc
:
V
)
=>
V
)
(
val
:
T
,
acc
:
V
)
:
V
Parameters
val
:
T
acc
:
V
Returns
V
Returns
V
for
Each
for
Each
(
fn
:
(
(
val
:
T
)
=>
void
)
)
:
void
Parameters
fn
:
(
(
val
:
T
)
=>
void
)
(
val
:
T
)
:
void
Parameters
val
:
T
Returns
void
Returns
void
forall
forall
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
Parameters
fn
:
(
(
e
:
T
)
=>
boolean
)
(
e
:
T
)
:
boolean
Parameters
e
:
T
Returns
boolean
Returns
boolean
head
head
(
)
:
T
Returns
T
isNEL
isNEL
(
)
:
boolean
Returns
boolean
join
join
<
V
>
(
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Returns
monet
.
NEL
<
V
>
lookup
lookup
(
i
:
number
)
:
monet
.
Maybe
<
T
>
Parameters
i
:
number
Returns
monet
.
Maybe
<
T
>
map
map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
V
)
(
val
:
T
)
:
V
Parameters
val
:
T
Returns
V
Returns
monet
.
NEL
<
V
>
map
Tails
map
Tails
<
V
>
(
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
monet
.
NEL
<
T
>
)
=>
V
)
(
val
:
monet
.
NEL
<
T
>
)
:
V
Parameters
val
:
monet
.
NEL
<
T
>
Returns
V
Returns
monet
.
NEL
<
V
>
nth
nth
(
i
:
number
)
:
undefined
|
T
Parameters
i
:
number
Returns
undefined
|
T
reduce
Left
reduce
Left
(
fn
:
(
(
acc
:
T
,
element
:
T
)
=>
T
)
)
:
T
Parameters
fn
:
(
(
acc
:
T
,
element
:
T
)
=>
T
)
(
acc
:
T
,
element
:
T
)
:
T
Parameters
acc
:
T
element
:
T
Returns
T
Returns
T
reverse
reverse
(
)
:
monet
.
NEL
<
T
>
Returns
monet
.
NEL
<
T
>
size
size
(
)
:
number
Returns
number
snoc
snoc
(
a
:
T
)
:
monet
.
NEL
<
T
>
Parameters
a
:
T
Returns
monet
.
NEL
<
T
>
tail
tail
(
)
:
monet
.
List
<
T
>
Returns
monet
.
List
<
T
>
tails
tails
(
)
:
monet
.
NEL
<
monet
.
NEL
<
T
>
>
Returns
monet
.
NEL
<
monet
.
NEL
<
T
>
>
take
Left
take
Left
<
V
>
(
m
:
monet
.
NEL
<
V
>
)
:
monet
.
NEL
<
T
>
Type Parameters
V
Parameters
m
:
monet
.
NEL
<
V
>
Returns
monet
.
NEL
<
T
>
take
Right
take
Right
<
V
>
(
m
:
monet
.
NEL
<
V
>
)
:
monet
.
NEL
<
V
>
Type Parameters
V
Parameters
m
:
monet
.
NEL
<
V
>
Returns
monet
.
NEL
<
V
>
to
to
<
I
extends
Iterable
<
T
>
>
(
ctor
:
(
(
iter
:
Iterable
<
T
>
)
=>
I
)
)
:
I
Type Parameters
I
extends
Iterable
<
T
>
Parameters
ctor
:
(
(
iter
:
Iterable
<
T
>
)
=>
I
)
(
iter
:
Iterable
<
T
>
)
:
I
Parameters
iter
:
Iterable
<
T
>
Returns
I
Returns
I
to
Array
to
Array
(
)
:
T
[]
Returns
T
[]
to
List
to
List
(
)
:
monet
.
List
<
T
>
Returns
monet
.
List
<
T
>
to
Set
to
Set
(
)
:
Set
<
T
>
Returns
Set
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
@@type
[iterator]
ap
ap
To
append
bind
chain
cobind
coflat
Map
cojoin
concat
cons
contains
copure
equals
every
exists
extract
fantasy-
land/ap
fantasy-
land/chain
fantasy-
land/equals
fantasy-
land/map
filter
filter
Not
find
flat
Map
flatten
flatten
Maybe
fold
Left
fold
Right
for
Each
forall
head
isNEL
join
lookup
map
map
Tails
nth
reduce
Left
reverse
size
snoc
tail
tails
take
Left
take
Right
to
to
Array
to
List
to
Set
Official Cockpit API Documentation
Houston Common Library
Loading...
NEL