Fork me on GitHub
#clojure-europe
<
2021-04-21
>
plexus05:04:20

Good morning!

djm06:04:18

đź‘‹

slipset06:04:54

So, about the matrix transposition thing. I was going to use that as a part of a talk at some point, basically to point out the importance of naming things If you see (defn foo [x] (apply mapv vector x)) it’s nearly impossible (for me at least) to figure out what this does, whereas (defn transpose [matrix] (apply mapv vector matrix)) at least gives you some hints as to what’s going on.

đź‘Ť 12
slipset06:04:22

Also, the trick here is to understand that what you’re after is transpose matrix, which you can google, since the first hit on google for “clojure transpose matrix” is https://stackoverflow.com/questions/10347315/matrix-transposition-in-clojure

pez06:04:33

Morning!

dharrigan07:04:22

Good Morning!

maleghast09:04:39

Mornin' everyone - hope you are all well!