What does the bang (or exclamation mark) operator do in elm? I saw an application with an init like this:
init = emptyModel ! []
I've tried looking in the elm docs, but either there is no info or I couldn't find it:)
The definition of the !
operator is here.
It takes a model, a list of commands and returns a tuple (pair) with a model and a single command which is the batch
of all the commands
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With