Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1002560 // dropKeys - drop elements of a map

JavaX fragment (include)

1  
static <K, V> Map<K, V> dropKeys(L<K> keys, Map<K, V> map) {
2  
  Map<K, V> map2 = cloneMap(map);
3  
  for (K key : keys)
4  
    map2.remove(key);
5  
  ret map2;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002560
Snippet name: dropKeys - drop elements of a map
Eternal ID of this version: #1002560/1
Text MD5: 8856b373a1ad5fa17e871f199a5601c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-02 01:07:01
Source code size: 156 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 645 / 638
Referenced in: [show references]