Search
Preparing search index...
The search index is not available
resulty
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"Ok"
Ok
Class Ok<E, A>
Type parameters
E
A
Hierarchy
Result
<
E
,
A
>
Ok
Index
Constructors
constructor
Properties
value
Methods
and
Then
ap
assign
cata
do
get
OrElse
get
OrElse
Value
map
map
Error
or
Else
Constructors
constructor
new
Ok
(
value
:
A
)
:
Ok
Parameters
value:
A
Returns
Ok
Properties
Private
value
value
:
A
Methods
and
Then
and
Then<B>
(
fn
:
function
)
:
Result
<
E
,
B
>
Type parameters
B
Parameters
fn:
function
(
a
:
A
)
:
Result
<
E
,
B
>
Parameters
a:
A
Returns
Result
<
E
,
B
>
Returns
Result
<
E
,
B
>
ap
ap<B, C>
(
result
:
Result
<
E
,
B
>
)
:
Result
<
E
,
C
>
Type parameters
B
C
Parameters
result:
Result
<
E
,
B
>
Returns
Result
<
E
,
C
>
assign
assign<K, B>
(
k
:
K
, other
:
Result
<
E
,
B
>
|
function
)
:
Result
<
E
,
A
&
object
>
Type parameters
K
:
string
B
Parameters
k:
K
other:
Result
<
E
,
B
>
|
function
Returns
Result
<
E
,
A
&
object
>
cata
cata<B>
(
matcher
:
Catamorphism
<
E
,
A
,
B
>
)
:
B
Type parameters
B
Parameters
matcher:
Catamorphism
<
E
,
A
,
B
>
Returns
B
do
do
(
fn
:
function
)
:
Result
<
E
,
A
>
Parameters
fn:
function
(
a
:
A
)
:
void
Parameters
a:
A
Returns
void
Returns
Result
<
E
,
A
>
get
OrElse
get
OrElse
(
fn
:
function
)
:
A
Parameters
fn:
function
(
)
:
A
Returns
A
Returns
A
get
OrElse
Value
get
OrElse
Value
(
_
:
A
)
:
A
Parameters
_:
A
Returns
A
map
map<B>
(
fn
:
function
)
:
Result
<
E
,
B
>
Type parameters
B
Parameters
fn:
function
(
a
:
A
)
:
B
Parameters
a:
A
Returns
B
Returns
Result
<
E
,
B
>
map
Error
map
Error<X>
(
fn
:
function
)
:
Result
<
X
,
A
>
Type parameters
X
Parameters
fn:
function
(
e
:
E
)
:
X
Parameters
e:
E
Returns
X
Returns
Result
<
X
,
A
>
or
Else
or
Else
(
fn
:
function
)
:
Result
<
any
,
A
>
Parameters
fn:
function
(
_
:
any
)
:
Result
<
any
,
A
>
Parameters
_:
any
Returns
Result
<
any
,
A
>
Returns
Result
<
any
,
A
>
Globals
"
Catamorphism"
"
Err"
"
Ok"
"
Result"
"index"
Ok
constructor
value
and
Then
ap
assign
cata
do
get
OrElse
get
OrElse
Value
map
map
Error
or
Else
ok
Generated using
TypeDoc