I'd be inclined to use 0 as the initial value for the reduce method rather than relying on the null that is the default on Collection#reduce being as we know this is definitely numeric. That's just my opinion though.