How to turn a Msg into a Cmd Msg in Elm?
Wouter In t Velt
15613

The first implementation I tried was:

send : a -> Cmd a
 send msg = Cmd.map (\() -> msg) Cmd.none

and it had no effect. Of course, it is effect-free but it also did not trigger my update function.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.