If you batch a list of commands, they will be executed in reverse order. 
For example:

Cmd.batch
    [ Task.perform (always (AddString "first")) (Task.succeed ())
    , Task.perform (always (AddString "second")) (Task.succeed ())
    , Task.perform (always (AddString "third")) (Task.succeed ())
    ]

Will print:

third
second
first


Has anyone else noticed this behavior? If so, do you know why Cmd.batch was 
implemented this way?

Here's a demo:
https://ellie-app.com/39NxYQfDCHMa1/0

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to