transposed

fun <T> List<List<T>>.transposed(): List<List<T>>

Returns this list of rows transposed into a list of columns.

An empty receiver, or one whose rows are empty, yields an empty list.

Throws

if the rows do not all have the same size.