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+

Description Darin Adler 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.
Comment 1 Darin Adler 2007-11-02 17:13:42 PDT
Created attachment 17004 [details]
patch
Comment 2 Maciej Stachowiak 2007-11-02 17:20:25 PDT
Comment on attachment 17004 [details]
patch

r=me
Comment 3 Darin Adler 2007-11-02 17:42:18 PDT
Committed revision 27385.