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 | ||
Matthieu Dubet
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)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Matthieu Dubet
Pull request: https://github.com/WebKit/WebKit/pull/5075
Radar WebKit Bug Importer
<rdar://problem/101117901>