WTF::Vector already has a "map" implementation, we should also have a "reduce" (="accumulate",="fold") operation. https://en.wikipedia.org/wiki/Fold_(higher-order_function)
Pull request: https://github.com/WebKit/WebKit/pull/5075
<rdar://problem/101117901>