Comment

Comment by edflsafoiewq

Doesn't reduce force the accumulator to be shared though? Both the reduce and the lambda are holding onto references to acc, which defeats any "single reference" optimizations.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton