Preparing search index...
The search index is not available
monument
monument
@monument/monad
Optional
Interface Optional<T>
Type Parameters
T
Hierarchy
Iterable
<
T
>
Monad
<
T
>
Optional
Index
Properties
is
Just
is
None
Methods
[iterator]
apply
apply
To
catch
Map
flat
Map
fold
for
Each
map
value
Properties
Readonly
is
Just
is
Just
:
boolean
Readonly
is
None
is
None
:
boolean
Methods
[iterator]
[iterator]
(
)
:
Iterator
<
T
,
any
,
undefined
>
Returns
Iterator
<
T
,
any
,
undefined
>
apply
apply
<
R
>
(
func
:
Optional
<
Func
<
[
T
]
,
R
>
>
)
:
Optional
<
R
>
Type Parameters
R
Parameters
func:
Optional
<
Func
<
[
T
]
,
R
>
>
Returns
Optional
<
R
>
apply
To
apply
To
<
R
>
(
value
:
Optional
<
R
>
)
:
T
extends
Func
<
[
R
]
,
unknown
>
?
Optional
<
ReturnType
<
T
>
>
:
never
Type Parameters
R
Parameters
value:
Optional
<
R
>
Returns
T
extends
Func
<
[
R
]
,
unknown
>
?
Optional
<
ReturnType
<
T
>
>
:
never
catch
Map
catch
Map
(
fallback
:
Func
<
[
]
,
Optional
<
T
>
>
)
:
Optional
<
T
>
Parameters
fallback:
Func
<
[
]
,
Optional
<
T
>
>
Returns
Optional
<
T
>
flat
Map
flat
Map
<
R
>
(
project
:
Func
<
[
value
:
T
]
,
Optional
<
R
>
>
)
:
Optional
<
R
>
Type Parameters
R
Parameters
project:
Func
<
[
value
:
T
]
,
Optional
<
R
>
>
Returns
Optional
<
R
>
fold
fold
<
R
>
(
onPresent
:
Func
<
[
value
:
T
]
,
R
>
, onAbsent
:
Func
<
[
]
,
R
>
)
:
R
Type Parameters
R
Parameters
onPresent:
Func
<
[
value
:
T
]
,
R
>
onAbsent:
Func
<
[
]
,
R
>
Returns
R
for
Each
for
Each
(
callback
:
Func
<
[
value
:
T
]
,
unknown
>
)
:
Optional
<
T
>
Parameters
callback:
Func
<
[
value
:
T
]
,
unknown
>
Returns
Optional
<
T
>
map
map
<
R
>
(
project
:
Func
<
[
value
:
T
]
,
R
>
)
:
Optional
<
R
>
Type Parameters
R
Parameters
project:
Func
<
[
value
:
T
]
,
R
>
Returns
Optional
<
R
>
value
value
(
)
:
undefined
|
T
Returns
undefined
|
T
value
(
fallback
:
Func
<
[
]
,
T
>
)
:
T
Parameters
fallback:
Func
<
[
]
,
T
>
Returns
T
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
monument
@monument/core
@monument/lens
@monument/monad
@monument/uri
Optional
is
Just
is
None
[iterator]
apply
apply
To
catch
Map
flat
Map
fold
for
Each
map
value
Generated using
TypeDoc