Matrix Transpose

Transpose a 2D matrix (swap rows and columns).

Code

General
matrix.transpose

Parameters

2D matrix

Server

More Ruby Snippets