meaning of ![] ?

988 views
Skip to first unread message

António Ramos

unread,
Oct 3, 2016, 6:43:41 AM10/3/16
to elm-d...@googlegroups.com
hello
sorry my simple question
        NoOp ->
            model ! []

what does ![] mean in the above code? 

regards

Magnus Rundberget

unread,
Oct 3, 2016, 6:50:40 AM10/3/16
to Elm Discuss
http://faq.elm-community.org/17.html#what-is-this---construct-in-the-code

+ when using it with an empty list it would return (model, Cmd.none).

-magnus

Zachary Kessin

unread,
Oct 5, 2016, 1:47:03 AM10/5/16
to elm-discuss
The Bang `!` operator takes a list of commands to run. So if you don't want to run a command, pass an empty list.

Zach

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



--
Zach Kessin
Twitter: @zkessin
Skype: zachkessin
Reply all
Reply to author
Forward
0 new messages