codeinabox@programming.dev to Programming@programming.devEnglish · 9 days agoAnecdotally, programmers dislike "reduce"evanhahn.comexternal-linkmessage-square17linkfedilinkarrow-up117arrow-down10
arrow-up117arrow-down1external-linkAnecdotally, programmers dislike "reduce"evanhahn.comcodeinabox@programming.dev to Programming@programming.devEnglish · 9 days agomessage-square17linkfedilink
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up1·9 days agoalso python has built-ins for sum, min, max, and math.prod - which account for a lot of use cases of reduce in a more readable way. But if you’re really crunching numbers, it’s just better to go with something like numpy, pandas, polars, …
also python has built-ins for sum, min, max, and math.prod - which account for a lot of use cases of reduce in a more readable way.
But if you’re really crunching numbers, it’s just better to go with something like numpy, pandas, polars, …