Stream: advent of code

Topic: Day 6


view this post on Zulip Luke Boswell (Dec 06 2022 at 07:17):

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:

view this post on Zulip Luke Boswell (Dec 06 2022 at 07:18):

I will say, the unit tests were really nice to use. roc test FTW!

view this post on Zulip Tommy Graves (Dec 06 2022 at 16:21):

Here's my day 6. Like Luke said, this was a pretty straightforward one.

view this post on Zulip Ian Erik Varatalu (Dec 06 2022 at 22:07):

does Roc have an option to use lazy character sequences or does it need to read the entire signal into memory?

view this post on Zulip Brian Carroll (Dec 06 2022 at 22:19):

No we don't have anything built in for lazy evaluation

view this post on Zulip Shritesh Bhattarai (Dec 06 2022 at 22:52):

Here's my day 6. List.windows might be useful to have in the stdlib.

view this post on Zulip Ayaz Hafiz (Dec 06 2022 at 23:45):

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:

view this post on Zulip Logan Lowder (Dec 09 2022 at 04:24):

Catching up!
Day6

view this post on Zulip Gabriel Pickl (Dec 09 2022 at 16:14):

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