Preparing search index...
The search index is not available
@ryandur/sand
@ryandur/sand
Some
Interface Some<THING>
interface
Some
<
THING
>
{
and
:
(
<
NEW_THING
>
(
other
)
=>
Maybe
<
[
THING
,
NEW_THING
]
>
)
;
inspect
:
(
(
)
=>
string
)
;
isNothing
:
false
;
mBind
:
(
<
NEW_THING
>
(
f
)
=>
Maybe
<
NEW_THING
>
)
;
map
:
(
<
NEW_THING
>
(
f
)
=>
Some
<
NEW_THING
>
)
;
or
:
(
(
f
)
=>
Some
<
THING
>
)
;
orElse
:
(
(
fallback
)
=>
THING
)
;
orNull
:
(
(
)
=>
THING
)
;
toResult
:
(
(
fallback
)
=>
Success
<
THING
>
)
;
}
Type Parameters
THING
Index
Properties
and
inspect
is
Nothing
m
Bind
map
or
or
Else
or
Null
to
Result
Properties
Readonly
and
and
:
(
<
NEW_THING
>
(
other
)
=>
Maybe
<
[
THING
,
NEW_THING
]
>
)
Type declaration
<
NEW_THING
>
(
other
)
:
Maybe
<
[
THING
,
NEW_THING
]
>
Type Parameters
NEW_THING
Parameters
other
:
Maybe
<
NEW_THING
>
Returns
Maybe
<
[
THING
,
NEW_THING
]
>
Readonly
inspect
inspect
:
(
(
)
=>
string
)
Type declaration
(
)
:
string
Returns
string
Readonly
is
Nothing
is
Nothing
:
false
Readonly
m
Bind
m
Bind
:
(
<
NEW_THING
>
(
f
)
=>
Maybe
<
NEW_THING
>
)
Type declaration
<
NEW_THING
>
(
f
)
:
Maybe
<
NEW_THING
>
Type Parameters
NEW_THING
Parameters
f
:
(
(
value
)
=>
Maybe
<
NEW_THING
>
)
(
value
)
:
Maybe
<
NEW_THING
>
Parameters
value
:
THING
Returns
Maybe
<
NEW_THING
>
Returns
Maybe
<
NEW_THING
>
Readonly
map
map
:
(
<
NEW_THING
>
(
f
)
=>
Some
<
NEW_THING
>
)
Type declaration
<
NEW_THING
>
(
f
)
:
Some
<
NEW_THING
>
Type Parameters
NEW_THING
Parameters
f
:
(
(
value
)
=>
NEW_THING
)
(
value
)
:
NEW_THING
Parameters
value
:
THING
Returns
NEW_THING
Returns
Some
<
NEW_THING
>
Readonly
or
or
:
(
(
f
)
=>
Some
<
THING
>
)
Type declaration
(
f
)
:
Some
<
THING
>
Parameters
f
:
unknown
Returns
Some
<
THING
>
Readonly
or
Else
or
Else
:
(
(
fallback
)
=>
THING
)
Type declaration
(
fallback
)
:
THING
Parameters
fallback
:
unknown
Returns
THING
Readonly
or
Null
or
Null
:
(
(
)
=>
THING
)
Type declaration
(
)
:
THING
Returns
THING
Readonly
to
Result
to
Result
:
(
(
fallback
)
=>
Success
<
THING
>
)
Type declaration
(
fallback
)
:
Success
<
THING
>
Parameters
fallback
:
THING
Returns
Success
<
THING
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
and
inspect
is
Nothing
m
Bind
map
or
or
Else
or
Null
to
Result
@ryandur/sand
Loading...