Explosion operator (!) In Elm

What does an explosion operator (or exclamation point) do in elms? I saw the application with init as follows:

init = emptyModel ! [] 

I tried to look in elm documents, but either there is no information, or I could not find it :)

+5
source share
1 answer

Definition of the operator ! here .

It takes a model, a list of commands and returns a tuple (pair) with the model and one command, which is a batch all commands

+11
source

All Articles