Here is my solution for Day 6. Nothing much to report on this one, it almost seemed too easy. Maybe that's Roc's fault.. :upside_down:
I will say, the unit tests were really nice to use. roc test
FTW!
Here's my day 6. Like Luke said, this was a pretty straightforward one.
does Roc have an option to use lazy character sequences or does it need to read the entire signal into memory?
No we don't have anything built in for lazy evaluation
Here's my day 6. List.windows
might be useful to have in the stdlib.
My day 6: https://gist.github.com/ayazhafiz/bc41e7be6415cbdea4182fbeed748e88. I wondered if I could, didn't stop to think if I should.. but Im pleasantly impressed the compiler didn't have a problem with this :sweat_smile:
Catching up!
Day6
Day 6 was actually pretty chill. probably not super efficient since I'm creating windows for the whole input instead of walking it but meh^^
Last updated: Jul 06 2025 at 12:14 UTC