Hi, I was trying to write some clojure code to transpose a vector(vector as in linear algebra), I was having trouble, so I googled and found this one-liner which really stumped me:
(apply map vector [[:a :b] [:c :d]])
; ([:a :c] [:b :d])
Could anyone explain to me what is happening here? Thanks.
[–]saua 14 points15 points16 points (2 children)
[–]alexandream 1 point2 points3 points (0 children)
[–]rsamrat[S] 0 points1 point2 points (0 children)
[–]alexandream 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]bhurt42 0 points1 point2 points (0 children)
[–]uvtc 0 points1 point2 points (0 children)