WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
246140
[WTF] Implement "reduce" function on WTF::Vector
https://bugs.webkit.org/show_bug.cgi?id=246140
Summary
[WTF] Implement "reduce" function on WTF::Vector
Matthieu Dubet
Reported
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
)
Attachments
Add attachment
proposed patch, testcase, etc.
Matthieu Dubet
Comment 1
2022-10-06 02:41:22 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/5075
Radar WebKit Bug Importer
Comment 2
2022-10-13 02:16:16 PDT
<
rdar://problem/101117901
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug