State

data class State<S, A>(val value: S, val result: A)(source)

Provides a functional approach to handling protocol state.

Constructors

Link copied to clipboard
constructor(value: S, result: A)

Properties

Link copied to clipboard
val result: A
Link copied to clipboard
val value: S

Functions

Link copied to clipboard
fun <B> map(f: (A) -> B): State<S, B>
Link copied to clipboard
fun <T> state(): T?