this post was submitted on 16 Jul 2023
1676 points (96.6% liked)

Memes

45170 readers
2510 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago (4 children)

Wouldn't reducer be more precise?

[–] [email protected] 3 points 1 year ago (1 children)

Can you explain this out a bit more? I'm a self-taught programmer, of sorts, and I'm not quite getting this...

[–] nicolairathjen 3 points 1 year ago

A reducer “reduces” a list of values to one value with some function by applying it to 2 values at the time.

For instance if you reduce the list [1, 2, 3] with the sum function you get (1 + (2 + 3)) = 6.

load more comments (2 replies)