astynax/tea-combine/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

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.

(<>) : model1 -> model2 -> Both model1 model2

An infix alias for @initWith.

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

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

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

An infix alias for @updateBoth.