transpose(m)

Get the transpose of a matrix

Parameters

m: matrix or an array

Return Value

transposed matrix or array

Example command:

transpose([[1,2],[3,4],[5,6]]) -> Returns [[1,3,5],[2,4,6]]

transpose([1,2,3]) -> Returns [[1],[2],[3]]

transpose([[1],[2],[3]]) -> Returns [1,2,3]