lightning-kmp
/
fr.acinq.lightning.utils
/
Either
/
Right
common
Right
data class
Right
<
Nothing
, out
B
>(value:
B
) :
Either
<
Nothing
,
B
>
Content copied to clipboard
Functions
Properties
Functions
fold
Link copied to clipboard
common
fun <
X
>
fold
(fa: (
Nothing
) ->
X
, fb: (
B
) ->
X
):
X
Content copied to clipboard
transform
Link copied to clipboard
common
fun <
X
,
Y
>
transform
(fa: (
Nothing
) ->
X
, fb: (
B
) ->
Y
):
Either
<
X
,
Y
>
Content copied to clipboard
Properties
isLeft
Link copied to clipboard
common
open override val
isLeft
:
Boolean
= false
Content copied to clipboard
isRight
Link copied to clipboard
common
open override val
isRight
:
Boolean
= true
Content copied to clipboard
left
Link copied to clipboard
common
open override val
left
:
Nothing
? = null
Content copied to clipboard
right
Link copied to clipboard
common
open override val
right
:
B
Content copied to clipboard
value
Link copied to clipboard
common
val
value
:
B
Content copied to clipboard