Preparing search index...
The search index is not available
Houston Common Library
Houston Common Library
@45drives/houston-common-ui
List
Interface List<T>
List
interface
List
<
T
>
{
@@type
:
string
;
[iterator]
(
)
:
Iterator
<
T
,
any
,
undefined
>
;
ap
<
V
>
(
listFn
:
List
<
(
(
val
:
T
)
=>
V
)
>
)
:
List
<
V
>
;
apTo
<
V
>
(
listVal
:
List
<
V
>
)
:
T
extends
(
(
arg
:
V
)
=>
any
)
?
List
<
ReturnType
<
T
<
T
>
>
>
:
never
;
append
(
list
:
List
<
T
>
)
:
List
<
T
>
;
bind
<
V
>
(
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
)
:
List
<
V
>
;
chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
)
:
List
<
V
>
;
concat
(
list
:
List
<
T
>
)
:
List
<
T
>
;
cons
(
a
:
T
)
:
List
<
T
>
;
contains
(
val
:
T
)
:
boolean
;
equals
(
other
:
List
<
T
>
)
:
boolean
;
every
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
;
exists
(
fn
:
(
(
e
:
T
)
=>
boolean
)
)
:
boolean
;
fantasy-land/ap
?
<
V
>
(
afn
:
Applicative
<
(
(
val
:
T
)
=>
V
)
>
)
:
Applicative
<
V
>
;
fantasy-land/chain
?
<
V
>
(
fn
:
(
(
val
:
T
)
=>
Chain
<
V
>
)
)
:
Chain
<
V
>
;
fantasy-land/equals
?
(
other
:
List
<
T
>
)
:
boolean
;
fantasy-land/map
?
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
Functor
<
V
>
;
filter
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
List
<
T
>
;
filterNot
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
List
<
T
>
;
find
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
Maybe
<
NonNullable
<
T
>
>
;
flatMap
<
V
>
(
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
)
:
List
<
V
>
;
flatten
<
V
>
(
)
:
List
<
V
>
;
flattenMaybe
<
V
>
(
)
:
T
extends
Maybe
<
V
>
?
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
(
)
:
undefined
|
T
;
headMaybe
(
)
:
Maybe
<
NonNullable
<
T
>
>
;
isNEL
(
)
:
boolean
;
join
<
V
>
(
)
:
List
<
V
>
;
lookup
(
i
:
number
)
:
Maybe
<
T
>
;
map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
List
<
V
>
;
nth
(
i
:
number
)
:
undefined
|
T
;
reverse
(
)
:
List
<
T
>
;
sequence
<
V
>
(
m
:
IMaybeStatic
)
:
Maybe
<
List
<
V
>
>
;
sequence
<
E
,
V
>
(
m
:
IEitherStatic
)
:
Either
<
E
,
List
<
V
>
>
;
sequence
<
E
,
V
>
(
m
:
IValidationStatic
)
:
Validation
<
List
<
E
>
,
List
<
V
>
>
;
sequence
<
V
>
(
m
:
IIOStatic
)
:
IO
<
List
<
V
>
>
;
sequence
<
E
,
A
>
(
m
:
IReaderStatic
)
:
Reader
<
E
,
List
<
A
>
>
;
sequenceEither
<
E
,
V
>
(
)
:
Either
<
E
,
List
<
V
>
>
;
sequenceIO
<
V
>
(
)
:
IO
<
List
<
V
>
>
;
sequenceMaybe
<
V
>
(
)
:
Maybe
<
List
<
V
>
>
;
sequenceReader
<
E
,
A
>
(
)
:
Reader
<
E
,
List
<
A
>
>
;
sequenceValidation
<
E
,
V
>
(
)
:
Validation
<
List
<
E
>
,
List
<
V
>
>
;
size
(
)
:
number
;
snoc
(
a
:
T
)
:
List
<
T
>
;
tail
(
)
:
List
<
T
>
;
tails
(
)
:
List
<
List
<
T
>
>
;
takeLeft
<
V
>
(
m
:
List
<
V
>
)
:
List
<
T
>
;
takeRight
<
V
>
(
m
:
List
<
V
>
)
:
List
<
V
>
;
to
<
I
extends
Iterable
<
T
>
>
(
ctor
:
(
(
iter
:
Iterable
<
T
>
)
=>
I
)
)
:
I
;
toArray
(
)
:
T
[]
;
toSet
(
)
:
Set
<
T
>
;
}
Type Parameters
T
Hierarchy-Diagram
Legend
interface
public method
Hierarchy (
view full
)
IMonad
<
T
>
Setoid
<
List
<
T
>
>
ITraversable
<
T
>
Iterable
<
T
>
List
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
<
T
,
any
,
undefined
>
Returns
Iterator
<
T
,
any
,
undefined
>
ap
ap
<
V
>
(
listFn
:
List
<
(
(
val
:
T
)
=>
V
)
>
)
:
List
<
V
>
Type Parameters
V
Parameters
listFn
:
List
<
(
(
val
:
T
)
=>
V
)
>
Returns
List
<
V
>
ap
To
ap
To
<
V
>
(
listVal
:
List
<
V
>
)
:
T
extends
(
(
arg
:
V
)
=>
any
)
?
List
<
ReturnType
<
T
<
T
>
>
>
:
never
Type Parameters
V
Parameters
listVal
:
List
<
V
>
Returns
T
extends
(
(
arg
:
V
)
=>
any
)
?
List
<
ReturnType
<
T
<
T
>
>
>
:
never
append
append
(
list
:
List
<
T
>
)
:
List
<
T
>
Parameters
list
:
List
<
T
>
Returns
List
<
T
>
bind
bind
<
V
>
(
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
)
:
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
(
val
:
T
)
:
List
<
V
>
Parameters
val
:
T
Returns
List
<
V
>
Returns
List
<
V
>
chain
chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
)
:
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
(
val
:
T
)
:
List
<
V
>
Parameters
val
:
T
Returns
List
<
V
>
Returns
List
<
V
>
concat
concat
(
list
:
List
<
T
>
)
:
List
<
T
>
Parameters
list
:
List
<
T
>
Returns
List
<
T
>
cons
cons
(
a
:
T
)
:
List
<
T
>
Parameters
a
:
T
Returns
List
<
T
>
contains
contains
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
equals
equals
(
other
:
List
<
T
>
)
:
boolean
Parameters
other
:
List
<
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
Optional
fantasy-
land/ap
fantasy-
land/ap
<
V
>
(
afn
:
Applicative
<
(
(
val
:
T
)
=>
V
)
>
)
:
Applicative
<
V
>
Type Parameters
V
Parameters
afn
:
Applicative
<
(
(
val
:
T
)
=>
V
)
>
Returns
Applicative
<
V
>
Optional
fantasy-
land/chain
fantasy-
land/chain
<
V
>
(
fn
:
(
(
val
:
T
)
=>
Chain
<
V
>
)
)
:
Chain
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
Chain
<
V
>
)
(
val
:
T
)
:
Chain
<
V
>
Parameters
val
:
T
Returns
Chain
<
V
>
Returns
Chain
<
V
>
Optional
fantasy-
land/equals
fantasy-
land/equals
(
other
:
List
<
T
>
)
:
boolean
Parameters
other
:
List
<
T
>
Returns
boolean
Optional
fantasy-
land/map
fantasy-
land/map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
Functor
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
V
)
(
val
:
T
)
:
V
Parameters
val
:
T
Returns
V
Returns
Functor
<
V
>
filter
filter
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
List
<
T
>
Parameters
fn
:
(
(
val
:
T
)
=>
boolean
)
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
Returns
List
<
T
>
filter
Not
filter
Not
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
List
<
T
>
Parameters
fn
:
(
(
val
:
T
)
=>
boolean
)
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
Returns
List
<
T
>
find
find
(
fn
:
(
(
val
:
T
)
=>
boolean
)
)
:
Maybe
<
NonNullable
<
T
>
>
Parameters
fn
:
(
(
val
:
T
)
=>
boolean
)
(
val
:
T
)
:
boolean
Parameters
val
:
T
Returns
boolean
Returns
Maybe
<
NonNullable
<
T
>
>
flat
Map
flat
Map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
)
:
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
List
<
V
>
)
(
val
:
T
)
:
List
<
V
>
Parameters
val
:
T
Returns
List
<
V
>
Returns
List
<
V
>
flatten
flatten
<
V
>
(
)
:
List
<
V
>
Type Parameters
V
Returns
List
<
V
>
flatten
Maybe
flatten
Maybe
<
V
>
(
)
:
T
extends
Maybe
<
V
>
?
List
<
V
>
:
never
Type Parameters
V
Returns
T
extends
Maybe
<
V
>
?
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
(
)
:
undefined
|
T
Returns
undefined
|
T
head
Maybe
head
Maybe
(
)
:
Maybe
<
NonNullable
<
T
>
>
Returns
Maybe
<
NonNullable
<
T
>
>
isNEL
isNEL
(
)
:
boolean
Returns
boolean
join
join
<
V
>
(
)
:
List
<
V
>
Type Parameters
V
Returns
List
<
V
>
lookup
lookup
(
i
:
number
)
:
Maybe
<
T
>
Parameters
i
:
number
Returns
Maybe
<
T
>
map
map
<
V
>
(
fn
:
(
(
val
:
T
)
=>
V
)
)
:
List
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
T
)
=>
V
)
(
val
:
T
)
:
V
Parameters
val
:
T
Returns
V
Returns
List
<
V
>
nth
nth
(
i
:
number
)
:
undefined
|
T
Parameters
i
:
number
Returns
undefined
|
T
reverse
reverse
(
)
:
List
<
T
>
Returns
List
<
T
>
sequence
sequence
<
V
>
(
m
:
IMaybeStatic
)
:
Maybe
<
List
<
V
>
>
Type Parameters
V
Parameters
m
:
IMaybeStatic
Returns
Maybe
<
List
<
V
>
>
sequence
<
E
,
V
>
(
m
:
IEitherStatic
)
:
Either
<
E
,
List
<
V
>
>
Type Parameters
E
V
Parameters
m
:
IEitherStatic
Returns
Either
<
E
,
List
<
V
>
>
sequence
<
E
,
V
>
(
m
:
IValidationStatic
)
:
Validation
<
List
<
E
>
,
List
<
V
>
>
Type Parameters
E
V
Parameters
m
:
IValidationStatic
Returns
Validation
<
List
<
E
>
,
List
<
V
>
>
sequence
<
V
>
(
m
:
IIOStatic
)
:
IO
<
List
<
V
>
>
Type Parameters
V
Parameters
m
:
IIOStatic
Returns
IO
<
List
<
V
>
>
sequence
<
E
,
A
>
(
m
:
IReaderStatic
)
:
Reader
<
E
,
List
<
A
>
>
Type Parameters
E
A
Parameters
m
:
IReaderStatic
Returns
Reader
<
E
,
List
<
A
>
>
sequence
Either
sequence
Either
<
E
,
V
>
(
)
:
Either
<
E
,
List
<
V
>
>
Type Parameters
E
V
Returns
Either
<
E
,
List
<
V
>
>
sequenceIO
sequenceIO
<
V
>
(
)
:
IO
<
List
<
V
>
>
Type Parameters
V
Returns
IO
<
List
<
V
>
>
sequence
Maybe
sequence
Maybe
<
V
>
(
)
:
Maybe
<
List
<
V
>
>
Type Parameters
V
Returns
Maybe
<
List
<
V
>
>
sequence
Reader
sequence
Reader
<
E
,
A
>
(
)
:
Reader
<
E
,
List
<
A
>
>
Type Parameters
E
A
Returns
Reader
<
E
,
List
<
A
>
>
sequence
Validation
sequence
Validation
<
E
,
V
>
(
)
:
Validation
<
List
<
E
>
,
List
<
V
>
>
Type Parameters
E
V
Returns
Validation
<
List
<
E
>
,
List
<
V
>
>
size
size
(
)
:
number
Returns
number
snoc
snoc
(
a
:
T
)
:
List
<
T
>
Parameters
a
:
T
Returns
List
<
T
>
tail
tail
(
)
:
List
<
T
>
Returns
List
<
T
>
tails
tails
(
)
:
List
<
List
<
T
>
>
Returns
List
<
List
<
T
>
>
take
Left
take
Left
<
V
>
(
m
:
List
<
V
>
)
:
List
<
T
>
Type Parameters
V
Parameters
m
:
List
<
V
>
Returns
List
<
T
>
take
Right
take
Right
<
V
>
(
m
:
List
<
V
>
)
:
List
<
V
>
Type Parameters
V
Parameters
m
:
List
<
V
>
Returns
List
<
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
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
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