In clojure a possible representation of a matrix is a vector of vectors, i.e. [[1 2] [3 4]]. A possible implementation of transposing a matrix would be:
[[1 2] [3 4]]
The usual solution is
(defn transpose [m] (apply mapv vector m))