WLJS LogoWLJS Notebook

Transpose

Transpose[list] transposes the first two levels in list.

Examples

Transpose a matrix:

Transpose[{{1, 2, 3}, {4, 5, 6}}]
(* {{1, 4}, {2, 5}, {3, 6}} *)

Pairs to lists:

Transpose[{{a, 1}, {b, 2}, {c, 3}}]
(* {{a, b, c}, {1, 2, 3}} *)

Please visit the official Wolfram Language Reference for more details.

On this page