This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-06
Channels
- # adventofcode (24)
- # aleph (1)
- # bangalore-clj (2)
- # beginners (196)
- # boot (148)
- # cider (18)
- # clara (83)
- # cljsrn (24)
- # clojure (210)
- # clojure-brasil (3)
- # clojure-china (1)
- # clojure-italy (11)
- # clojure-korea (8)
- # clojure-russia (82)
- # clojure-spec (115)
- # clojure-uk (130)
- # clojurescript (109)
- # core-async (7)
- # cryogen (1)
- # cursive (22)
- # datascript (11)
- # datomic (6)
- # devcards (2)
- # emacs (1)
- # garden (1)
- # hoplon (2)
- # incanter (1)
- # klipse (4)
- # luminus (4)
- # off-topic (89)
- # om (53)
- # onyx (78)
- # parinfer (9)
- # proton (3)
- # protorepl (20)
- # re-frame (107)
- # reagent (52)
- # rum (30)
- # spacemacs (1)
- # testing (3)
- # untangled (31)
- # vim (43)
- # yada (9)
Hey all, I've got my repo up https://github.com/bhauman/advent-of-clojure-2016 there's also a link to last years solutions as well. I'm open to discussion.
Yeah that was easiest so far...
I got 459 and 419. It is my best total for one day, but not my best for any 1 part.
awesome!
ahh transpose...
I will refactor to use that... I wrote my own and called it pivot.
See I'm learning already!
Thank you 😉
Not in the core lib, I just have one defined in my core file for quick importing, since these problems seem to use it frequently
(defn transpose
"Transposes the given nested sequence into nested vectors, as
in matrix transposition. E.g., (transpose [[1 2 3] [4 5 6]])
would return [[1 4] [2 5] [3 6]]."
[s]
(vec (apply map vector s)))
I found a transpose in clojure.core.matrix
but then I ended up using (apply mapv vector data)