Search
Preparing search index...
The search index is not available
fun-monads
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Success
Class Success<A>
Type parameters
A
Hierarchy
Success
Implements
Functor
<
A
,
any
,
Try
<
A
>
>
Index
Constructors
constructor
Properties
is
Failure
is
Success
type
value
Methods
ap
failed
filter
flat
Map
flatten
fold
for
Each
get
get
OrElse
map
or
Else
recover
Constructors
constructor
new
Success
(
value
:
A
)
:
Success
Parameters
value:
A
Returns
Success
Properties
is
Failure
is
Failure
:
boolean
= false
is
Success
is
Success
:
boolean
= true
Readonly
type
type
:
string
= "Success"
Readonly
value
value
:
A
Methods
ap
ap<B>
(
fa
:
Try
<
(
a
:
A
)
=>
B
>
)
:
Try
<
B
>
Type parameters
B
:
any
Parameters
fa:
Try
<
(
a
:
A
)
=>
B
>
Returns
Try
<
B
>
failed
failed
(
)
:
Try
<
A
>
|
Try
<
Error
>
Returns
Try
<
A
>
|
Try
<
Error
>
filter
filter
(
p
:
(
a
:
A
)
=>
boolean
)
:
Try
<
A
>
Parameters
p:
(
a
:
A
)
=>
boolean
(
a
:
A
)
:
boolean
Parameters
a:
A
Returns
boolean
Returns
Try
<
A
>
flat
Map
flat
Map<B>
(
f
:
(
x
:
A
)
=>
Try
<
B
>
)
:
Try
<
B
>
Type parameters
B
:
any
Parameters
f:
(
x
:
A
)
=>
Try
<
B
>
(
x
:
A
)
:
Try
<
B
>
Parameters
x:
A
Returns
Try
<
B
>
Returns
Try
<
B
>
flatten
flatten
(
)
:
Try
<
A
>
Returns
Try
<
A
>
fold
fold<B>
(
f
:
(
x
:
Error
)
=>
B
, s
:
(
x
:
A
)
=>
B
)
:
B
Type parameters
B
:
any
Parameters
f:
(
x
:
Error
)
=>
B
(
x
:
Error
)
:
B
Parameters
x:
Error
Returns
B
s:
(
x
:
A
)
=>
B
(
x
:
A
)
:
B
Parameters
x:
A
Returns
B
Returns
B
for
Each
for
Each
(
fn
:
(
a
:
A
)
=>
any
)
:
void
Parameters
fn:
(
a
:
A
)
=>
any
(
a
:
A
)
:
any
Parameters
a:
A
Returns
any
Returns
void
get
get
(
)
:
A
Returns
A
get
OrElse
get
OrElse<B>
(
b
:
(
)
=>
B
)
:
A
|
B
Type parameters
B
:
any
Parameters
b:
(
)
=>
B
(
)
:
B
Returns
B
Returns
A
|
B
map
map<B>
(
f
:
(
x
:
A
)
=>
B
)
:
Try
<
B
>
Type parameters
B
:
any
Parameters
f:
(
x
:
A
)
=>
B
(
x
:
A
)
:
B
Parameters
x:
A
Returns
B
Returns
Try
<
B
>
or
Else
or
Else<B>
(
b
:
Try
<
B
>
)
:
Try
<
A
>
|
Try
<
B
>
Type parameters
B
:
any
Parameters
b:
Try
<
B
>
Returns
Try
<
A
>
|
Try
<
B
>
recover
recover<B>
(
pf
:
(
x
:
Error
)
=>
Try
<
B
>
)
:
Try
<
B
>
Type parameters
B
:
any
Parameters
pf:
(
x
:
Error
)
=>
Try
<
B
>
(
x
:
Error
)
:
Try
<
B
>
Parameters
x:
Error
Returns
Try
<
B
>
Returns
Try
<
B
>
Globals
Failure
LeftM
None
ReaderM
RightM
Some
Success
constructor
is
Failure
is
Success
type
value
ap
failed
filter
flat
Map
flatten
fold
for
Each
get
get
OrElse
map
or
Else
recover
Either
Left
Option
Reader
Right
Try
Left
Right
Generated using
TypeDoc