transpose

Transposes the array returned transposey = arrayx

Return

an array with n columns and m rows

Parameters

array

an array with m rows and n columns


inline fun <T> transpose(array: Array<Array<T>>): Array<Array<T>>

Transposes the array returned transposey = arrayx

Return

an array with n columns and m rows

Parameters

array

an array with m rows and n columns, must be rectangular