title: How can I assign a list to another list in Groovy
body: <p>I want to do something like this in Groovy:</p>
  
  <pre><code>List&lt;MyObject&gt; list1 = getAList(); 
  </code></pre>
  
  <p>How can I assign a list to other list in groovy without having to iterate through the list I want to assign?</p>