Preparing search index...
The search index is not available
Houston Common Library
Houston Common Library
@45drives/houston-common-ui
Reader
Interface Reader<E, A>
Reader
interface
Reader
<
E
,
A
>
{
@@type
:
string
;
ap
<
B
>
(
rfn
:
Reader
<
E
,
(
(
val
:
A
)
=>
B
)
>
)
:
Reader
<
E
,
B
>
;
apTo
<
B
>
(
value
:
Reader
<
E
,
B
>
)
:
A
extends
(
(
arg
:
B
)
=>
any
)
?
Reader
<
E
,
ReturnType
<
A
<
A
>
>
>
:
never
;
bind
<
B
>
(
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
)
:
Reader
<
E
,
B
>
;
chain
<
B
>
(
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
)
:
Reader
<
E
,
B
>
;
fantasy-land/ap
?
<
V
>
(
afn
:
Applicative
<
(
(
val
:
A
)
=>
V
)
>
)
:
Applicative
<
V
>
;
fantasy-land/chain
?
<
V
>
(
fn
:
(
(
val
:
A
)
=>
Chain
<
V
>
)
)
:
Chain
<
V
>
;
fantasy-land/map
?
<
V
>
(
fn
:
(
(
val
:
A
)
=>
V
)
)
:
Functor
<
V
>
;
flatMap
<
B
>
(
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
)
:
Reader
<
E
,
B
>
;
join
<
B
>
(
)
:
Reader
<
E
,
B
>
;
local
<
X
>
(
fn
:
(
(
val
:
X
)
=>
E
)
)
:
Reader
<
X
,
A
>
;
map
<
B
>
(
fn
:
(
(
val
:
A
)
=>
B
)
)
:
Reader
<
E
,
B
>
;
run
(
config
:
E
)
:
A
;
takeLeft
<
X
>
(
m
:
Reader
<
E
,
X
>
)
:
Reader
<
E
,
A
>
;
takeRight
<
B
>
(
m
:
Reader
<
E
,
B
>
)
:
Reader
<
E
,
B
>
;
}
Type Parameters
E
A
Hierarchy-Diagram
Legend
interface
public method
Hierarchy (
view full
)
IMonad
<
A
>
Reader
Index
Properties
@@type
Methods
ap
ap
To
bind
chain
fantasy-
land/ap?
fantasy-
land/chain?
fantasy-
land/map?
flat
Map
join
local
map
run
take
Left
take
Right
Properties
@@type
@@type
:
string
Methods
ap
ap
<
B
>
(
rfn
:
Reader
<
E
,
(
(
val
:
A
)
=>
B
)
>
)
:
Reader
<
E
,
B
>
Type Parameters
B
Parameters
rfn
:
Reader
<
E
,
(
(
val
:
A
)
=>
B
)
>
Returns
Reader
<
E
,
B
>
ap
To
ap
To
<
B
>
(
value
:
Reader
<
E
,
B
>
)
:
A
extends
(
(
arg
:
B
)
=>
any
)
?
Reader
<
E
,
ReturnType
<
A
<
A
>
>
>
:
never
Type Parameters
B
Parameters
value
:
Reader
<
E
,
B
>
Returns
A
extends
(
(
arg
:
B
)
=>
any
)
?
Reader
<
E
,
ReturnType
<
A
<
A
>
>
>
:
never
bind
bind
<
B
>
(
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
)
:
Reader
<
E
,
B
>
Type Parameters
B
Parameters
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
(
val
:
A
)
:
Reader
<
E
,
B
>
Parameters
val
:
A
Returns
Reader
<
E
,
B
>
Returns
Reader
<
E
,
B
>
chain
chain
<
B
>
(
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
)
:
Reader
<
E
,
B
>
Type Parameters
B
Parameters
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
(
val
:
A
)
:
Reader
<
E
,
B
>
Parameters
val
:
A
Returns
Reader
<
E
,
B
>
Returns
Reader
<
E
,
B
>
Optional
fantasy-
land/ap
fantasy-
land/ap
<
V
>
(
afn
:
Applicative
<
(
(
val
:
A
)
=>
V
)
>
)
:
Applicative
<
V
>
Type Parameters
V
Parameters
afn
:
Applicative
<
(
(
val
:
A
)
=>
V
)
>
Returns
Applicative
<
V
>
Optional
fantasy-
land/chain
fantasy-
land/chain
<
V
>
(
fn
:
(
(
val
:
A
)
=>
Chain
<
V
>
)
)
:
Chain
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
A
)
=>
Chain
<
V
>
)
(
val
:
A
)
:
Chain
<
V
>
Parameters
val
:
A
Returns
Chain
<
V
>
Returns
Chain
<
V
>
Optional
fantasy-
land/map
fantasy-
land/map
<
V
>
(
fn
:
(
(
val
:
A
)
=>
V
)
)
:
Functor
<
V
>
Type Parameters
V
Parameters
fn
:
(
(
val
:
A
)
=>
V
)
(
val
:
A
)
:
V
Parameters
val
:
A
Returns
V
Returns
Functor
<
V
>
flat
Map
flat
Map
<
B
>
(
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
)
:
Reader
<
E
,
B
>
Type Parameters
B
Parameters
fn
:
(
(
val
:
A
)
=>
Reader
<
E
,
B
>
)
(
val
:
A
)
:
Reader
<
E
,
B
>
Parameters
val
:
A
Returns
Reader
<
E
,
B
>
Returns
Reader
<
E
,
B
>
join
join
<
B
>
(
)
:
Reader
<
E
,
B
>
Type Parameters
B
Returns
Reader
<
E
,
B
>
local
local
<
X
>
(
fn
:
(
(
val
:
X
)
=>
E
)
)
:
Reader
<
X
,
A
>
Type Parameters
X
Parameters
fn
:
(
(
val
:
X
)
=>
E
)
(
val
:
X
)
:
E
Parameters
val
:
X
Returns
E
Returns
Reader
<
X
,
A
>
map
map
<
B
>
(
fn
:
(
(
val
:
A
)
=>
B
)
)
:
Reader
<
E
,
B
>
Type Parameters
B
Parameters
fn
:
(
(
val
:
A
)
=>
B
)
(
val
:
A
)
:
B
Parameters
val
:
A
Returns
B
Returns
Reader
<
E
,
B
>
run
run
(
config
:
E
)
:
A
Parameters
config
:
E
Returns
A
take
Left
take
Left
<
X
>
(
m
:
Reader
<
E
,
X
>
)
:
Reader
<
E
,
A
>
Type Parameters
X
Parameters
m
:
Reader
<
E
,
X
>
Returns
Reader
<
E
,
A
>
take
Right
take
Right
<
B
>
(
m
:
Reader
<
E
,
B
>
)
:
Reader
<
E
,
B
>
Type Parameters
B
Parameters
m
:
Reader
<
E
,
B
>
Returns
Reader
<
E
,
B
>
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
local
map
run
take
Left
take
Right
Official Cockpit API Documentation
Houston Common Library
Loading...
Reader