Mike Cronin
1 min readJan 15, 2020

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)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response