reshape

fun <T> List<T>.reshape(rows: Int, cols: Int): List<List<T>>(source)