codeinabox@programming.dev to Programming@programming.devEnglish · 4 days agoAnecdotally, programmers dislike "reduce"evanhahn.comexternal-linkmessage-square19fedilinkarrow-up128
arrow-up128external-linkAnecdotally, programmers dislike "reduce"evanhahn.comcodeinabox@programming.dev to Programming@programming.devEnglish · 4 days agomessage-square19fedilink
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-24 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, …