This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-30
Channels
- # adventofcode (7)
- # announcements (9)
- # babashka (20)
- # beginners (182)
- # calva (9)
- # cider (20)
- # circleci (3)
- # clj-kondo (1)
- # clojure (269)
- # clojure-europe (2)
- # clojure-india (1)
- # clojure-italy (6)
- # clojure-nl (5)
- # clojure-uk (50)
- # clojurescript (56)
- # code-reviews (3)
- # core-async (174)
- # datomic (4)
- # duct (1)
- # emacs (3)
- # events (1)
- # fulcro (31)
- # graalvm (10)
- # graphql (8)
- # jobs (1)
- # joker (11)
- # juxt (7)
- # luminus (2)
- # malli (4)
- # off-topic (2)
- # overtone (1)
- # pathom (2)
- # re-frame (24)
- # shadow-cljs (42)
- # sql (1)
- # tools-deps (10)
Completed day 6-2 with relative ease and then 8-1 proved to be really easy in clojure. Looks like I’m getting comfortable with the language.
Nice 🙂 Happy to see I’m not the only one still doing puzzles. I liked this tip someone gave me earlier:
(let [ys (descendants ::YOU)
ss (descendants ::SAN)]
(count
(set/difference
(set/union ys ss)
(set/intersection ys ss))))
I think your part 2 can also be shortened using set operations only
Yeah, I’m plugging away to get comfortable with the language. That’s going pretty well by now.
I’m skipping the intcode ones because I originally started this in Haskell and I’m not sure whether I want to port my intcode computer to Clojure.