Anonymous user
Matrix transposition: Difference between revisions
+joy
m (moved Matrix Transpose to Matrix transposition) |
(+joy) |
||
Line 517:
1,8,27,64,125
1,16,81,256,625</pre>
=={{header|Joy}}==
For matrices represented as lists, there's ''transpose'', defined in seqlib like this:
<lang joy>
DEFINE transpose == [ [null] [true] [[null] some] ifte ]
[ pop [] ]
[ [[first] map] [[rest] map] cleave ]
[ cons ]
linrec .
</lang>
=={{header|Mathematica}}==
|