Result

data class Result<M, F>(val model: M, val lastNext: Next<M, F>?)

Defines the final state of a Mobius loop after a sequence of events have been processed.

Constructors

Link copied to clipboard
constructor(model: M, lastNext: Next<M, F>?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val lastNext: Next<M, F>?

Returns the Next that resulted from the last processed event

Link copied to clipboard
val model: M

Returns the final model - note that was not necessarily produced by the last Next, in case that returned an empty model.