title: equivalent in Groovy for Javascript's map()?
body: <p>In Javascript the function</p>
  
  <pre><code>array.map(callback[, thisArg])
  </code></pre>
  
  <p>Creates a new array with the results of calling a provided function on every element in this array. (Per documentation on <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map" rel="nofollow">mdn</a>).
  Is there something equivalent in Groovy?</p>