After looking at the subreddit, I managed to solve day 19! https://github.com/lindskogen/advent-of-code-2023/blob/main/day19/main.roc
I think it came out quite pretty!
I also finally had time for it: https://github.com/FabHof/aoc-2023/blob/main/day19/main.roc
First time I stored functions in records. Works like a charm.
Interstingly .x
is a function that gets x from any record, but the same .x
cannot get x from two different records. Makes a lot of sense, but the error message was quite strange.
https://github.com/ostcar/aoc2023/blob/main/days/day19.roc
My first solution for part 1 was to "clever". So I had to rewrite it for part 2.
Last updated: Jul 06 2025 at 12:14 UTC