astynax/tea-combine/3.1.0

TeaCombine.Pure.Pair

Combinators for work with pure programs (those doesn't use @Cmd and @Sub).

TODO: add some great docs

initWith : model2 -> model1 -> Both model1 model2

Inits two sub-models as pair.

Update model2 msg2
-> Update model1 msg1
-> Update (Both model1 model2) (Either msg1 msg2)

Updates one of two sub-models using corresponding sub-update function.