title: Groovy map method of collections
body: <p>Is there a <code>map</code> method in Groovy? I want to do something like I do with the following Scala snippet:</p>
  
  <pre><code>scala&gt; val l = List(1, 2, 3)
  l: List[Int] = List(1, 2, 3)
  
  scala&gt; l.map(_ + 1)
  res0: List[Int] = List(2, 3, 4)
  </code></pre>