Fork me on GitHub
#adventofcode
<
2023-12-22
>
wevrem08:12:07

Day 22 — Solutions

borkdude15:12:33

@UTFAPNRPT did you know that clojure 1.11 has update-keys/update-vals? not sure if that corresponds to your map-vals function exactly, just thought I'd mention it

wevrem19:12:15

I do know of those, @U04V15CAJ but I don’t find myself using them often. Maybe I’m not good at recognizing opportunities to use them.

borkdude19:12:29

@UTFAPNRPT hah, sorry, I misremembered which solution used map-vals, but it was actually @U02P133R2SZ’s solution!

😆 1
borkdude20:12:20

but probably this does something slightly different :)

wevrem20:12:38

Yeah it looks like it might be a little too complicated for update-vals.

borkdude20:12:24

it did prompt me to add update-vals and update-keys to squint though ;)

💯 1
wevrem03:12:51

I had a long drive today and thought about the problem. I added some commentary to my https://github.com/wevre/advent-of-code/blob/master/src/advent_of_code/2023/day_22_bricks.clj (mostly for future me).