5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 1 year agoRandom internet people explaining math better then math teacheri.imgur.comimagemessage-square151fedilinkarrow-up11.27Karrow-down144
arrow-up11.23Karrow-down1imageRandom internet people explaining math better then math teacheri.imgur.com5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 1 year agomessage-square151fedilink
minus-squarebasketsandhoes@lemmy.mllinkfedilinkarrow-up2·1 year agoCan you explain this out a bit more? I’m a self-taught programmer, of sorts, and I’m not quite getting this…
minus-squarenicolairathjen@lemmy.worldlinkfedilinkarrow-up3·1 year agoA 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.
Can you explain this out a bit more? I’m a self-taught programmer, of sorts, and I’m not quite getting this…
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.