codeinabox@programming.dev to Programming@programming.devEnglish · 11 days agoAnecdotally, programmers dislike "reduce"evanhahn.comexternal-linkmessage-square16linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkAnecdotally, programmers dislike "reduce"evanhahn.comcodeinabox@programming.dev to Programming@programming.devEnglish · 11 days agomessage-square16linkfedilink
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up0·11 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, …