Package oolong.next

Functions

Link copied to clipboard
fun <A, B, C, D> bimap(    next: Pair<A, Effect<B>>,     fa: (A) -> C,     fb: (B) -> D): Pair<C, Effect<D>>

Transform next of type A to Effect of type B to Pair of type C to Effect of type D using fa and fb.

Link copied to clipboard
fun <Model, Msg> next(model: Model, effect: Effect<Msg> = none()): Pair<Model, Effect<Msg>>

Create a pair of model to effect where effect defaults to none.