Matrix transposition: Difference between revisions

Content added Content deleted
Line 277:
 
=={{header|Groovy}}==
The Groovy extensions tito the List class provides a transpose method:
<lang groovy>def matrix = [ [ 1, 2, 3, 4 ],
[ 5, 6, 7, 8 ] ]