title: Appending the same string to a list of strings in Groovy
body: <p>I want to append a string to each string in a list of strings. I was wanting to do something like this</p>
  
  <pre><code>def a = 'a '
  def b = 'b '
  
  [a,b].each {
      it += 'yo'
  }
  
  assertEquals a, 'a yo'
  assertEquals b, 'b yo'
  </code></pre>
  
  <p>But obviously that's not going to work.</p>