title: GPars: return of eachParallel{}
body: <p>I want to do alot of stuff with each of those example strings and return Object of some other type here Integers, later some bigger class-objects.</p>
  
  <p>Here in this example I am trying something simple, how ever I get a completly wrong result.
  At least for what i was hoping to get back. xD</p>
  
  <p>I hoped to get: <code>[6, 5, 6, 5]</code> 
  but instead I get: <code>[butter, bread, dragon, table]</code></p>
  
  <pre><code>package test
  
  @Grab(group='org.codehaus.gpars', module='gpars', version='1.0.0')
  import static groovyx.gpars.GParsPool.withPool
  
  class Test {
      List&lt;String&gt; strings = new ArrayList&lt;String&gt;([
          "butter",
          "bread",
          "dragon",
          "table"
      ])
  
      def closure = { it.length() }
  
      def doStuff() {
          def results = withPool( 4 ) {
              strings.eachParallel{ it.length()}
          }
          println results
      }
  
      static main(args) {
          def test = new Test()
          test.doStuff()
      }
  }
  </code></pre>
  
  <p>It would be nice if the answer could have a short explanation.
  Thanks a lot!</p>