title: Replacing commas in list with arrow ->
body: <p>How do I replace the commas on the second level of a list with replacement arrows?</p>
  
  <p>For example, this:</p>
  
  <pre><code>{{a, girl}, {b, girl}, {c, girl}, {e, girl}, {g, girl}}
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>{{a-&gt;girl}, {b-&gt;girl}, {c-&gt;girl}, {e-&gt;girl}, {g-&gt;girl}}
  </code></pre>
  
  <p><code>Replace</code> doesn't work because it thinks the comma shouldn't be there. Putting it in quotes doesn't work, nor does <code>StringReplace</code></p>
  
  <p>What I think it should be:</p>
  
  <pre><code>Replace[list, "," -&gt; "-&gt;", {2}]
  </code></pre>