Preparing search index...
The search index is not available
Houston Common Library
Houston Common Library
@45drives/houston-common-lib
monet
Nil
Interface Nil
List
interface
Nil
{
@@type
:
string
;
[iterator]
(
)
:
Iterator
<
void
,
any
,
undefined
>
;
ap
<
V
>
(
listFn
:
monet
.
List
<
(
(
val
:
void
)
=>
V
)
>
)
:
monet
.
List
<
V
>
;
apTo
<
V
>
(
listVal
:
monet
.
List
<
V
>
)
:
never
;
append
<
T
>
(
list
:
monet
.
List
<
T
>
)
:
monet
.
List
<
T
>
;
bind
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
)
:
monet
.
List
<
V
>
;
chain
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
)
:
monet
.
List
<
V
>
;
concat
<
T
>
(
list
:
monet
.
List
<
T
>
)
:
monet
.
List
<
T
>
;
cons
<
T
>
(
a
:
T
)
:
monet
.
List
<
T
>
;
contains
(
val
:
void
)
:
boolean
;
equals
(
other
:
monet
.
List
<
void
>
)
:
boolean
;
every
(
fn
:
(
(
e
:
void
)
=>
boolean
)
)
:
boolean
;
exists
(
fn
:
(
(
e
:
void
)
=>
boolean
)
)
:
boolean
;
fantasy-land/ap
?
<
V
>
(
afn
:
monet
.
Applicative
<
(
(
val
:
void
)
=>
V
)
>
)
:
monet
.
Applicative
<
V
>
;
fantasy-land/chain
?
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
Chain
<
V
>
)
)
:
monet
.
Chain
<
V
>
;
fantasy-land/equals
?
(
other
:
monet
.
List
<
void
>
)
:
boolean
;
fantasy-land/map
?
<
V
>
(
fn
:
(
(
val
:
void
)
=>
V
)
)
:
monet
.
Functor
<
V
>
;
filter
(
fn
:
(
(
val
:
void
)
=>
boolean
)
)
:
monet
.
List
<
void
>
;
filterNot
(
fn
:
(
(
val
:
void
)
=>
boolean
)
)
:
monet
.
List
<
void
>
;
find
(
fn
:
(
(
val
:
void
)
=>
boolean
)
)
:
monet
.
Maybe
<
NonNullable
<
void
>
>
;
flatMap
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
)
:
monet
.
List
<
V
>
;
flatten
<
V
>
(
)
:
monet
.
List
<
V
>
;
flattenMaybe
<
V
>
(
)
:
never
;
foldLeft
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
acc
:
V
,
val
:
void
)
=>
V
)
)
=>
V
)
;
foldRight
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
val
:
void
,
acc
:
V
)
=>
V
)
)
=>
V
)
;
forEach
(
fn
:
(
(
val
:
void
)
=>
void
)
)
:
void
;
forall
(
fn
:
(
(
e
:
void
)
=>
boolean
)
)
:
boolean
;
head
(
)
:
undefined
|
void
;
headMaybe
(
)
:
monet
.
Maybe
<
NonNullable
<
void
>
>
;
isNEL
(
)
:
boolean
;
join
<
V
>
(
)
:
monet
.
List
<
V
>
;
lookup
(
i
:
number
)
:
monet
.
Maybe
<
void
>
;
map
<
V
>
(
fn
:
(
(
val
:
void
)
=>
V
)
)
:
monet
.
List
<
V
>
;
nth
(
i
:
number
)
:
undefined
|
void
;
reverse
(
)
:
monet
.
List
<
void
>
;
sequence
<
V
>
(
m
:
monet
.
IMaybeStatic
)
:
monet
.
Maybe
<
monet
.
List
<
V
>
>
;
sequence
<
E
,
V
>
(
m
:
monet
.
IEitherStatic
)
:
monet
.
Either
<
E
,
monet
.
List
<
V
>
>
;
sequence
<
E
,
V
>
(
m
:
monet
.
IValidationStatic
)
:
monet
.
Validation
<
monet
.
List
<
E
>
,
monet
.
List
<
V
>
>
;
sequence
<
V
>
(
m
:
monet
.
IIOStatic
)
:
monet
.
IO
<
monet
.
List
<
V
>
>
;
sequence
<
E
,
A
>
(
m
:
monet
.
IReaderStatic
)
:
monet
.
Reader
<
E
,
monet
.
List
<
A
>
>
;
sequenceEither
<
E
,
V
>
(
)
:
monet
.
Either
<
E
,
monet
.
List
<
V
>
>
;
sequenceIO
<
V
>
(
)
:
monet
.
IO
<
monet
.
List
<
V
>
>
;
sequenceMaybe
<
V
>
(
)
:
monet
.
Maybe
<
monet
.
List
<
V
>
>
;
sequenceReader
<
E
,
A
>
(
)
:
monet
.
Reader
<
E
,
monet
.
List
<
A
>
>
;
sequenceValidation
<
E
,
V
>
(
)
:
monet
.
Validation
<
monet
.
List
<
E
>
,
monet
.
List
<
V
>
>
;
size
(
)
:
number
;
snoc
(
a
:
void
)
:
monet
.
List
<
void
>
;
tail
(
)
:
monet
.
List
<
void
>
;
tails
(
)
:
monet
.
List
<
monet
.
List
<
void
>
>
;
takeLeft
<
V
>
(
m
:
monet
.
List
<
V
>
)
:
monet
.
List
<
void
>
;
takeRight
<
V
>
(
m
:
monet
.
List
<
V
>
)
:
monet
.
List
<
V
>
;
to
<
I
extends
Iterable
<
void
>
>
(
ctor
:
(
(
iter
:
Iterable
<
void
>
)
=>
I
)
)
:
I
;
toArray
(
)
:
void
[]
;
toSet
(
)
:
Set
<
void
>
;
}
Hierarchy-Diagram
Legend
interface
public method
Hierarchy (
view full
)
monet
.
List
<
void
>
Nil
Index
Properties
@@type
Methods
[iterator]
ap
ap
To
append
bind
chain
concat
cons
contains
equals
every
exists
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
head
Maybe
isNEL
join
lookup
map
nth
reverse
sequence
sequence
Either
sequenceIO
sequence
Maybe
sequence
Reader
sequence
Validation
size
snoc
tail
tails
take
Left
take
Right
to
to
Array
to
Set
Properties
@@type
@@type
:
string
Methods
[iterator]
[iterator]
(
)
:
Iterator
<
void
,
any
,
undefined
>
Returns
Iterator
<
void
,
any
,
undefined
>
ap
ap
<
V
>
(
listFn
:
monet
.
List
<
(
(
val
:
void
)
=>
V
)
>
)
:
monet
.
List
<
V
>
Type Parameters
V
Parameters
listFn
:
monet
.
List
<
(
(
val
:
void
)
=>
V
)
>
Returns
monet
.
List
<
V
>
ap
To
ap
To
<
V
>
(
listVal
:
monet
.
List
<
V
>
)
:
never
Type Parameters
V
Parameters
listVal
:
monet
.
List
<
V
>
Returns
never
append
append
<
T
>
(
list
:
monet
.
List
<
T
>
)
:
monet
.
List
<
T
>
Type Parameters
T
Parameters
list
:
monet
.
List
<
T
>
Returns
monet
.
List
<
T
>
bind
bind
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
)
:
monet
.
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
(
val
:
void
)
:
monet
.
List
<
V
>
Parameters
val
:
void
Returns
monet
.
List
<
V
>
Returns
monet
.
List
<
V
>
chain
chain
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
)
:
monet
.
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
(
val
:
void
)
:
monet
.
List
<
V
>
Parameters
val
:
void
Returns
monet
.
List
<
V
>
Returns
monet
.
List
<
V
>
concat
concat
<
T
>
(
list
:
monet
.
List
<
T
>
)
:
monet
.
List
<
T
>
Type Parameters
T
Parameters
list
:
monet
.
List
<
T
>
Returns
monet
.
List
<
T
>
cons
cons
<
T
>
(
a
:
T
)
:
monet
.
List
<
T
>
Type Parameters
T
Parameters
a
:
T
Returns
monet
.
List
<
T
>
contains
contains
(
val
:
void
)
:
boolean
Parameters
val
:
void
Returns
boolean
equals
equals
(
other
:
monet
.
List
<
void
>
)
:
boolean
Parameters
other
:
monet
.
List
<
void
>
Returns
boolean
every
every
(
fn
:
(
(
e
:
void
)
=>
boolean
)
)
:
boolean
Parameters
fn
:
(
(
e
:
void
)
=>
boolean
)
(
e
:
void
)
:
boolean
Parameters
e
:
void
Returns
boolean
Returns
boolean
exists
exists
(
fn
:
(
(
e
:
void
)
=>
boolean
)
)
:
boolean
Parameters
fn
:
(
(
e
:
void
)
=>
boolean
)
(
e
:
void
)
:
boolean
Parameters
e
:
void
Returns
boolean
Returns
boolean
Optional
fantasy-
land/ap
fantasy-
land/ap
<
V
>
(
afn
:
monet
.
Applicative
<
(
(
val
:
void
)
=>
V
)
>
)
:
monet
.
Applicative
<
V
>
Type Parameters
V
Parameters
afn
:
monet
.
Applicative
<
(
(
val
:
void
)
=>
V
)
>
Returns
monet
.
Applicative
<
V
>
Optional
fantasy-
land/chain
fantasy-
land/chain
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
Chain
<
V
>
)
)
:
monet
.
Chain
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
void
)
=>
monet
.
Chain
<
V
>
)
(
val
:
void
)
:
monet
.
Chain
<
V
>
Parameters
val
:
void
Returns
monet
.
Chain
<
V
>
Returns
monet
.
Chain
<
V
>
Optional
fantasy-
land/equals
fantasy-
land/equals
(
other
:
monet
.
List
<
void
>
)
:
boolean
Parameters
other
:
monet
.
List
<
void
>
Returns
boolean
Optional
fantasy-
land/map
fantasy-
land/map
<
V
>
(
fn
:
(
(
val
:
void
)
=>
V
)
)
:
monet
.
Functor
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
void
)
=>
V
)
(
val
:
void
)
:
V
Parameters
val
:
void
Returns
V
Returns
monet
.
Functor
<
V
>
filter
filter
(
fn
:
(
(
val
:
void
)
=>
boolean
)
)
:
monet
.
List
<
void
>
Parameters
fn
:
(
(
val
:
void
)
=>
boolean
)
(
val
:
void
)
:
boolean
Parameters
val
:
void
Returns
boolean
Returns
monet
.
List
<
void
>
filter
Not
filter
Not
(
fn
:
(
(
val
:
void
)
=>
boolean
)
)
:
monet
.
List
<
void
>
Parameters
fn
:
(
(
val
:
void
)
=>
boolean
)
(
val
:
void
)
:
boolean
Parameters
val
:
void
Returns
boolean
Returns
monet
.
List
<
void
>
find
find
(
fn
:
(
(
val
:
void
)
=>
boolean
)
)
:
monet
.
Maybe
<
NonNullable
<
void
>
>
Parameters
fn
:
(
(
val
:
void
)
=>
boolean
)
(
val
:
void
)
:
boolean
Parameters
val
:
void
Returns
boolean
Returns
monet
.
Maybe
<
NonNullable
<
void
>
>
flat
Map
flat
Map
<
V
>
(
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
)
:
monet
.
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
void
)
=>
monet
.
List
<
V
>
)
(
val
:
void
)
:
monet
.
List
<
V
>
Parameters
val
:
void
Returns
monet
.
List
<
V
>
Returns
monet
.
List
<
V
>
flatten
flatten
<
V
>
(
)
:
monet
.
List
<
V
>
Type Parameters
V
Returns
monet
.
List
<
V
>
flatten
Maybe
flatten
Maybe
<
V
>
(
)
:
never
Type Parameters
V
Returns
never
fold
Left
fold
Left
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
acc
:
V
,
val
:
void
)
=>
V
)
)
=>
V
)
Type Parameters
V
Parameters
initial
:
V
Returns
(
(
fn
:
(
(
acc
:
V
,
val
:
void
)
=>
V
)
)
=>
V
)
(
fn
:
(
(
acc
:
V
,
val
:
void
)
=>
V
)
)
:
V
Parameters
fn
:
(
(
acc
:
V
,
val
:
void
)
=>
V
)
(
acc
:
V
,
val
:
void
)
:
V
Parameters
acc
:
V
val
:
void
Returns
V
Returns
V
fold
Right
fold
Right
<
V
>
(
initial
:
V
)
:
(
(
fn
:
(
(
val
:
void
,
acc
:
V
)
=>
V
)
)
=>
V
)
Type Parameters
V
Parameters
initial
:
V
Returns
(
(
fn
:
(
(
val
:
void
,
acc
:
V
)
=>
V
)
)
=>
V
)
(
fn
:
(
(
val
:
void
,
acc
:
V
)
=>
V
)
)
:
V
Parameters
fn
:
(
(
val
:
void
,
acc
:
V
)
=>
V
)
(
val
:
void
,
acc
:
V
)
:
V
Parameters
val
:
void
acc
:
V
Returns
V
Returns
V
for
Each
for
Each
(
fn
:
(
(
val
:
void
)
=>
void
)
)
:
void
Parameters
fn
:
(
(
val
:
void
)
=>
void
)
(
val
:
void
)
:
void
Parameters
val
:
void
Returns
void
Returns
void
forall
forall
(
fn
:
(
(
e
:
void
)
=>
boolean
)
)
:
boolean
Parameters
fn
:
(
(
e
:
void
)
=>
boolean
)
(
e
:
void
)
:
boolean
Parameters
e
:
void
Returns
boolean
Returns
boolean
head
head
(
)
:
undefined
|
void
Returns
undefined
|
void
head
Maybe
head
Maybe
(
)
:
monet
.
Maybe
<
NonNullable
<
void
>
>
Returns
monet
.
Maybe
<
NonNullable
<
void
>
>
isNEL
isNEL
(
)
:
boolean
Returns
boolean
join
join
<
V
>
(
)
:
monet
.
List
<
V
>
Type Parameters
V
Returns
monet
.
List
<
V
>
lookup
lookup
(
i
:
number
)
:
monet
.
Maybe
<
void
>
Parameters
i
:
number
Returns
monet
.
Maybe
<
void
>
map
map
<
V
>
(
fn
:
(
(
val
:
void
)
=>
V
)
)
:
monet
.
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
void
)
=>
V
)
(
val
:
void
)
:
V
Parameters
val
:
void
Returns
V
Returns
monet
.
List
<
V
>
nth
nth
(
i
:
number
)
:
undefined
|
void
Parameters
i
:
number
Returns
undefined
|
void
reverse
reverse
(
)
:
monet
.
List
<
void
>
Returns
monet
.
List
<
void
>
sequence
sequence
<
V
>
(
m
:
monet
.
IMaybeStatic
)
:
monet
.
Maybe
<
monet
.
List
<
V
>
>
Type Parameters
V
Parameters
m
:
monet
.
IMaybeStatic
Returns
monet
.
Maybe
<
monet
.
List
<
V
>
>
sequence
<
E
,
V
>
(
m
:
monet
.
IEitherStatic
)
:
monet
.
Either
<
E
,
monet
.
List
<
V
>
>
Type Parameters
E
V
Parameters
m
:
monet
.
IEitherStatic
Returns
monet
.
Either
<
E
,
monet
.
List
<
V
>
>
sequence
<
E
,
V
>
(
m
:
monet
.
IValidationStatic
)
:
monet
.
Validation
<
monet
.
List
<
E
>
,
monet
.
List
<
V
>
>
Type Parameters
E
V
Parameters
m
:
monet
.
IValidationStatic
Returns
monet
.
Validation
<
monet
.
List
<
E
>
,
monet
.
List
<
V
>
>
sequence
<
V
>
(
m
:
monet
.
IIOStatic
)
:
monet
.
IO
<
monet
.
List
<
V
>
>
Type Parameters
V
Parameters
m
:
monet
.
IIOStatic
Returns
monet
.
IO
<
monet
.
List
<
V
>
>
sequence
<
E
,
A
>
(
m
:
monet
.
IReaderStatic
)
:
monet
.
Reader
<
E
,
monet
.
List
<
A
>
>
Type Parameters
E
A
Parameters
m
:
monet
.
IReaderStatic
Returns
monet
.
Reader
<
E
,
monet
.
List
<
A
>
>
sequence
Either
sequence
Either
<
E
,
V
>
(
)
:
monet
.
Either
<
E
,
monet
.
List
<
V
>
>
Type Parameters
E
V
Returns
monet
.
Either
<
E
,
monet
.
List
<
V
>
>
sequenceIO
sequenceIO
<
V
>
(
)
:
monet
.
IO
<
monet
.
List
<
V
>
>
Type Parameters
V
Returns
monet
.
IO
<
monet
.
List
<
V
>
>
sequence
Maybe
sequence
Maybe
<
V
>
(
)
:
monet
.
Maybe
<
monet
.
List
<
V
>
>
Type Parameters
V
Returns
monet
.
Maybe
<
monet
.
List
<
V
>
>
sequence
Reader
sequence
Reader
<
E
,
A
>
(
)
:
monet
.
Reader
<
E
,
monet
.
List
<
A
>
>
Type Parameters
E
A
Returns
monet
.
Reader
<
E
,
monet
.
List
<
A
>
>
sequence
Validation
sequence
Validation
<
E
,
V
>
(
)
:
monet
.
Validation
<
monet
.
List
<
E
>
,
monet
.
List
<
V
>
>
Type Parameters
E
V
Returns
monet
.
Validation
<
monet
.
List
<
E
>
,
monet
.
List
<
V
>
>
size
size
(
)
:
number
Returns
number
snoc
snoc
(
a
:
void
)
:
monet
.
List
<
void
>
Parameters
a
:
void
Returns
monet
.
List
<
void
>
tail
tail
(
)
:
monet
.
List
<
void
>
Returns
monet
.
List
<
void
>
tails
tails
(
)
:
monet
.
List
<
monet
.
List
<
void
>
>
Returns
monet
.
List
<
monet
.
List
<
void
>
>
take
Left
take
Left
<
V
>
(
m
:
monet
.
List
<
V
>
)
:
monet
.
List
<
void
>
Type Parameters
V
Parameters
m
:
monet
.
List
<
V
>
Returns
monet
.
List
<
void
>
take
Right
take
Right
<
V
>
(
m
:
monet
.
List
<
V
>
)
:
monet
.
List
<
V
>
Type Parameters
V
Parameters
m
:
monet
.
List
<
V
>
Returns
monet
.
List
<
V
>
to
to
<
I
extends
Iterable
<
void
>
>
(
ctor
:
(
(
iter
:
Iterable
<
void
>
)
=>
I
)
)
:
I
Type Parameters
I
extends
Iterable
<
void
>
Parameters
ctor
:
(
(
iter
:
Iterable
<
void
>
)
=>
I
)
(
iter
:
Iterable
<
void
>
)
:
I
Parameters
iter
:
Iterable
<
void
>
Returns
I
Returns
I
to
Array
to
Array
(
)
:
void
[]
Returns
void
[]
to
Set
to
Set
(
)
:
Set
<
void
>
Returns
Set
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
@@type
[iterator]
ap
ap
To
append
bind
chain
concat
cons
contains
equals
every
exists
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
head
Maybe
isNEL
join
lookup
map
nth
reverse
sequence
sequence
Either
sequenceIO
sequence
Maybe
sequence
Reader
sequence
Validation
size
snoc
tail
tails
take
Left
take
Right
to
to
Array
to
Set
Official Cockpit API Documentation
Houston Common Library
Loading...
List