Bug 15807

Summary: HashMap needs a take() function that combines get and remove
Product: WebKit Reporter: Darin Adler <darin>
Component: Web Template FrameworkAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Enhancement    
Priority: P3    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
patch mjs: review+

Darin Adler
Reported 2007-11-02 15:10:19 PDT
Hyatt pointed out that it's awkward to use iterators to find something and then get the value and remove it. Instead he'd like a take() function built into map that does the job. I'll add it.
Attachments
patch (12.54 KB, patch)
2007-11-02 17:13 PDT, Darin Adler
mjs: review+
Darin Adler
Comment 1 2007-11-02 17:13:42 PDT
Maciej Stachowiak
Comment 2 2007-11-02 17:20:25 PDT
Comment on attachment 17004 [details] patch r=me
Darin Adler
Comment 3 2007-11-02 17:42:18 PDT
Committed revision 27385.
Note You need to log in before you can comment on or make changes to this bug.