toggle menu
NavigationApp
jvm
switch theme
search in API
navigation-ux-ev-platform
/
com.mapbox.ev.platform.support
/
Either
Either
sealed
class
Either
<
E
,
out
A
>
Inheritors
Left
Right
Members
Types
Companion
Link copied to clipboard
object
Companion
Left
Link copied to clipboard
data
class
Left
<
E
,
A
>
(
val
value
:
E
)
:
Either
<
E
,
A
>
Right
Link copied to clipboard
data
class
Right
<
E
,
A
>
(
val
value
:
A
)
:
Either
<
E
,
A
>
Functions
flat
Map
Link copied to clipboard
fun
<
B
>
flatMap
(
f
:
(
A
)
->
Either
<
E
,
B
>
)
:
Either
<
E
,
B
>
fold
Link copied to clipboard
fun
<
C
>
fold
(
ifLeft
:
(
E
)
->
C
,
ifRight
:
(
A
)
->
C
)
:
C
get
Or
Null
Link copied to clipboard
fun
getOrNull
(
)
:
A
?
map
Link copied to clipboard
fun
<
B
>
map
(
f
:
(
A
)
->
B
)
:
Either
<
E
,
B
>
suspend
Fold
Link copied to clipboard
suspend
fun
<
C
>
suspendFold
(
ifLeft
:
suspend
(
E
)
->
C
,
ifRight
:
suspend
(
A
)
->
C
)
:
C