title: How can I map values out of an onClick event into an action in Elm?
body: <p>I am experimenting with an Elm app in which I wish to generate actions from clicking within a div, but I wish the actions to contain the coordinates of the click.</p>
  
  <p>I can see that I can generate actions from clicks like this:</p>
  
  <pre><code>div [onClick address MyAction] [text "click in here"]
  </code></pre>
  
  <p>But I can't see how to apply a mapping function to the original click data to populate fields in MyAction</p>