of

fun <M, F> of(model: M, lastNext: Next<M, F>?): Result<M, F>

Create a Result with the provided model and next.

Parameters

model

the model the loop ended with

lastNext

the last next emitted by the loop

M

the model type

F

the effect type