Bug 246140

Summary: [WTF] Implement "reduce" function on WTF::Vector
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matthieu Dubet 2022-10-06 02:15:59 PDT
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)
Comment 1 Matthieu Dubet 2022-10-06 02:41:22 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5075
Comment 2 Radar WebKit Bug Importer 2022-10-13 02:16:16 PDT
<rdar://problem/101117901>