Anonymous user
Matrix transposition: Difference between revisions
→{{header|Groovy}}
m (→{{header|Fortran}}: lang tag) |
|||
Line 277:
=={{header|Groovy}}==
The
<lang groovy>def matrix = [ [ 1, 2, 3, 4 ],
[ 5, 6, 7, 8 ] ]
Line 283:
matrix.each { println it }
println()
def transpose =
transpose.each { println it }</lang>
|