astynax/tea-combine/3.1.0

TeaCombine.Effectful.Many

Combinators those help to work with homogenous sets of sub-models (in a form of @Array).

TODO: add some great docs.

(Int -> Update model msg)
-> Ix msg
-> Array model
-> ( Array model, Cmd (Ix msg) )

Updates each sub-model in @Array using a function from sub-model index to sub-update.

updateAll : List (Update model msg) -> Update (Array model) (Ix msg)

Updates an @Array of sub-models using a @List of sub-updates.

(Int -> Subscription model msg)
-> Subscription (Array model) (Ix msg)

Subscribes each element of the @Array using a sub-subscription (by index).