Matrix transposition: Difference between revisions
→{{header|J}}: use same example as other solutions
m (→{{header|JavaScript}}: refactoring) |
(→{{header|J}}: use same example as other solutions) |
||
Line 438:
=={{header|J}}==
'''Solution:'''<br>
Transpose is the
'''Example:'''
<lang j> ]matrix=:
4 16 64 256
5 25 125 625
|: matrix
1 2 3 4 5
1 8 27 64 125
1 16 81 256 625</lang>
=={{header|Java}}==
|