title: XY prob: How do I issue a bunch of msgs simultaneously?
body: <p>Almost definitely an <a href="https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem">XY problem</a> but I can't think of a concise way to phrase what I'm trying to do.</p>
  
  <p>I have a textarea. Inside this text area, the user enters a comma-separated list of ID numbers. When they click "Fetch", I split their input on commas, to get multiple string values, and each of those string values gets passed to a function that makes a HTTP request to my API getting info on the item. </p>
  
  <p>That's where I stumble. Right now I have these parts:</p>
  
  <ul>
  <li><code>getInfo : String -&gt; Cmd Msg</code>, takes an ID string and ultimately fires <code>Http.send</code></li>
  <li><code>type Msg = Fetch String</code>, where <code>Fetch idStr -&gt; (model, getInfo idStr)</code></li>
  </ul>
  
  <p>I sort of want to take my textarea's input and say <code>String.split "," |&gt; List.map (\id -&gt; getInfo id)</code>. Except I don't know what to do with the <code>List Msg</code> that would give me, I want to fire each of those msgs off, but Elm doesn't work that way?</p>
  
  <p>While reading I found <code>Cmd.batch</code>, but there's not really any info on it in the docs so I'm not sure if that's what I want or how to use it.</p>