|
-
October 27th, 2010, 06:27 PM
#1
dictionary
Hello,
I have a dictionary d of type <string, list<int>>.
I'd like to remove a specific int from all the lists of the dictionary whose keys verify a specific condition (if s == 'hello' then remove 3 from d[s], for all the strings s of the dictionary d).
What's the easiest and shortest way to do that, in one line/instruction if possible ?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|