title: How do I add an element to a list in Groovy?
body: <p>Let's say I've got a list, like this...</p>
  
  <pre><code>def myList = ["first", 2, "third", 4.0];
  </code></pre>
  
  <p>How do I add (push) an element to the end of it? I come from a PHP background, and there I would just do something like <code>$myList[] = "fifth";</code>. What's the equivalent of that in Groovy?</p>