Bug 15807 - HashMap needs a take() function that combines get and remove
Summary: HashMap needs a take() function that combines get and remove
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P3 Enhancement
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-02 15:10 PDT by Darin Adler
Modified: 2007-11-02 17:42 PDT (History)
0 users

See Also:


Attachments
patch (12.54 KB, patch)
2007-11-02 17:13 PDT, Darin Adler
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.