Matrix transposition: Difference between revisions

Content added Content deleted
m (Correct source code spacing for Ada)
(Added J solution. I'll add an example soon.)
Line 161: Line 161:
m=[[1,1,1,1],[2, 4, 8, 16],[3, 9,27, 81],[5, 25,125, 625]]
m=[[1,1,1,1],[2, 4, 8, 16],[3, 9,27, 81],[5, 25,125, 625]]
print,transpose(m)
print,transpose(m)

=={{header|J}}==
Transpose is the monadic primary verb <code>|:</code>


=={{header|Java}}==
=={{header|Java}}==