I can't picture how this function would work. Could you give an example of
where you would want to use it? Is this just a shortcut around having to
make two passes through the update function?

On Tue, Nov 29, 2016 at 1:27 PM, Mark Hamburg <[email protected]> wrote:

> With various libraries only returning commands instead of tasks, would it
> be reasonable to add the following function (and could it be added without
> going inside of the implementation for Cmd)?
>
> Cmd.andThen : (x -> Cmd y) -> Cmd x -> Cmd y
>
> The slippery slope is that we end up recreating much of Task in Cmd, but
> the distinction between the two is somewhat vague — two constructs to cover
> slightly more than one concept.
>
> Mark
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to