It has come to my attention that apparently reduce is kind of controversial? Apparently it’s bad, mainly because it’s too unreadable. I kind of disagree since, if I can figure it out, that’s a pretty low bar. I just think it’s a nice little function, so here’s a meme I made to try and defend myself:

(If you hate it for performance reasons, I have no defense. Yes, iterators will always be slower than raw loops, so don’t use it if you need absolute speed and nothing else)