https://github.com/ostcar/aoc2023/blob/main/days/day13.roc
I think this was easier again.
Part 2 wrinkled my brain a bit, but we got there
https://gist.github.com/mulias/2e9f88bc847a4e1ba28c75b522af7ecc
Love that I can do this
some pretty generic code with tags
X
and Y
working contextually as constructor functions, plus List.concat
producing a list of mixed tag types without needing type annotations all feels great. Between OCaml and TypeScript I feel like I have good grasp of polymorphic/structural variants, but no other language has done it as cleanly as Roc IMO.
Finally solved day 13! https://github.com/lindskogen/advent-of-code-2023/blob/main/day13/main.roc
The trick
I also finally found some time to solve this. https://github.com/FabHof/aoc-2023/blob/main/day13/main.roc
I think it was on the easier side. Part 2 was not a huge problem to adapt, and I was even inefficient with it.
Here's my day 13. Fun one! https://github.com/ryanb/advent-2023-roc/tree/main/day13
Solution Observation
My day 13: https://github.com/timotree3/aoc2023/blob/main/roc/day13.roc
I was so slow because I still haven't finished day 12!
Last updated: Jul 06 2025 at 12:14 UTC