4 ms·
The sum reduce example really should use 0 instead of 1 as the initializer. 2, 6, 8, and 3 don't actually add up to 20.
by Semiapies 5y ago
The sum reduce example really should use 0 instead of 1 as the initializer. 2, 6, 8, and 3 don't actually add up to 20.