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)

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

download  show line numbers  debug dex   

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

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: 389 / 358
Referenced in: [show references]

Formerly at http://tinybrain.de/1002560 & http://1002560.tinybrain.de