toggle menu
Noise for Kotlin
1.0.1
jvm
switch theme
search in API
Noise for Kotlin
/
nl.sanderdijkhuis.noise.data
/
State
State
data
class
State
<
S
,
A
>
(
val
value
:
S
,
val
result
:
A
)
(
source
)
Provides a functional approach to handling protocol state.
Members
Constructors
State
Link copied to clipboard
constructor
(
value
:
S
,
result
:
A
)
Properties
result
Link copied to clipboard
val
result
:
A
value
Link copied to clipboard
val
value
:
S
Functions
map
Link copied to clipboard
fun
<
B
>
map
(
f
:
(
A
)
->
B
)
:
State
<
S
,
B
>
state
Link copied to clipboard
fun
<
T
>
state
(
)
:
T
?