I had a hunch I could use mod, but I wanted to try something different and represent a “ring” instead and try to have “inspectable” output at each step.
I’m active on lemmy: https://programming.dev/c/advent_of_code and am posting my solutions in the daily solution threads.
There are also some other Haskell solutions, for Day 1, I think there were three or four.
I’m using this to brush up on Rust this year. Probably doing everything in Haskell first, then translating. Repo is here. It’s a fairly nice setup with a Nix flake (haskell.nix + crane) and tasty-golden for tests.
You can find my solutions here: Only the first four days are in Haskell. I switched to Futhark afterwards because I wanted to try and learn something new.