Fresheyeball/elm-return/7.1.0

Respond

type alias Respond msg a =
a -> Cmd msg

A function from a model to a Cmd. Basically there are times where you want to have a side effect on the world if the model has a certain shape. Respond facilitates this use case.

append : Respond msg a -> Respond msg a -> a -> Cmd msg
sum : List (Respond msg a) -> a -> Cmd msg
zero : Respond msg a
comap : (b -> a) -> Respond msg a -> Respond msg b

Add a function to the front b -> a >> a -> Cmd msg