title: How can I transpose a matrix in Groovy?
body: <p>I need transpose an array from rows into cols and cols into rows</p>
  
  <pre><code>def mtrx = [
     [1,2,3],
     [4,5,6]
  ]
  //mtrx.anyMethod()
  //expected result
  //[[1,4],[2,5],[3,6]]
  </code></pre>
  
  <p>Do you know a direct method from it?</p>
  
  <p>I don't know a Groovy method that transposes this case; if you know another way to transpose please tell me it.</p>