This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-21
Channels
- # announcements (12)
- # aws (1)
- # babashka (82)
- # beginners (89)
- # calva (8)
- # cider (20)
- # clj-kondo (1)
- # clojars (9)
- # clojure (120)
- # clojure-australia (3)
- # clojure-europe (14)
- # clojure-france (24)
- # clojure-germany (3)
- # clojure-italy (16)
- # clojure-nl (1)
- # clojure-spec (3)
- # clojure-uk (22)
- # clojurescript (26)
- # cursive (38)
- # datascript (1)
- # emacs (10)
- # events (1)
- # helix (7)
- # jackdaw (5)
- # jobs-discuss (37)
- # lambdaisland (10)
- # malli (20)
- # meander (2)
- # off-topic (15)
- # pathom (42)
- # quil (1)
- # re-frame (38)
- # react (2)
- # reitit (2)
- # reveal (9)
- # rewrite-clj (3)
- # ring (5)
- # shadow-cljs (84)
- # spacemacs (1)
- # tools-deps (23)
- # vim (8)
- # vscode (1)
mawning!
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.
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
Morning!
Bore da