AOC2022/rust/6
2022-12-07 00:04:57 +00:00
..
input.txt day 6 in rust 2022-12-07 00:04:57 +00:00
part1.rs day 6 in rust 2022-12-07 00:04:57 +00:00
part2.rs day 6 in rust 2022-12-07 00:04:57 +00:00
README.md day 6 in rust 2022-12-07 00:04:57 +00:00

every time I open rust I want to have a clever functional solution where I just chain some iterators and it pops out the right answer with zero mutable state

and more than half the time I end up with a fucking imperative loop juggling like five mutable variables this would be like completely trivial to rewrite in zig, I literally replace the vec with an alloc of an arraylist and heck reuse my indexedset from day 3 (or maybe write my own dedup for fun but meh) and bam it's literally just C tier code