AOC2022/rust/6/README.md
2022-12-07 00:04:57 +00:00

5 lines
505 B
Markdown

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