method

transpose

v1_8_7_72 - Show latest stable - Class: Array
transpose()
public

Assumes that self is an array of arrays and transposes the rows and columns.

   a = [[1,2], [3,4], [5,6]]
   a.transpose   #=> [[1, 3, 5], [2, 4, 6]]