ListTools
Transpose
transpose a list of lists (as if it were a matrix)
Calling Sequence
Parameters
Description
Examples
Transpose(L)
L
-
list of lists (type listlist)
The Transpose(L) function transposes a list of lists as if it were a matrix.
Note: Within a procedure, it is likely that changing the indices is more efficient than creating a new transposed list of lists. Therefore, procedure Transpose should only be used for modifying lists of lists that need to be returned in transposed form.
In the special case where the argument is of type list⁡, is returned.
with⁡ListTools:
L≔1,2,3,a,b,c,X,Y,Z
L1,2
2
L2,1
a
R≔Transpose⁡L
R≔1,a,X,2,b,Y,3,c,Z
R1,2
Transpose⁡,,
See Also
inline
LinearAlgebra[Transpose]
type[listlist]
Download Help Document