astynax / tea-combine / TeaCombine.Effectful.Many

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

updateEach : (Basics.Int -> TeaCombine.Effectful.Update model msg) -> TeaCombine.Ix msg -> Array model -> ( Array model, Platform.Cmd.Cmd (TeaCombine.Ix msg) )

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

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

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

subscribeEach : (Basics.Int -> TeaCombine.Effectful.Subscription model msg) -> TeaCombine.Effectful.Subscription (Array model) (TeaCombine.Ix msg)

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