transposematrix amatrix transpose amatrix outputs the transposed amatrix. Example:
transpose [[1 2][3 4][5 6]] [ [1 3 5] [2 4 6] ] ;-)