relvox / iridescence-elm / Utils.Matrix

Module to perform operations on matrices.

transpose : List (List a) -> List (List a)

Transposes a matrix represented as a list of lists. If the input matrix is empty or contains empty rows, the function returns an empty list.