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

7
LINES

< > BotCompany Repo | #1004210 // mapMinus - map minus some keys

JavaX fragment (include)

static <A, B> Map<A, B> mapMinus(Map<A, B> map, O... keys) {
  if (empty(keys)) ret map;
  Map<A, B> m2 = cloneMap(map);
  for (O key : keys)
    m2.remove(key);
  ret m2;
}

Author comment

Began life as a copy of #1004133

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004210
Snippet name: mapMinus - map minus some keys
Eternal ID of this version: #1004210/3
Text MD5: 4b40434b09a149a604d861c9341dd1e0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-01 15:24:35
Source code size: 179 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 586 / 589
Version history: 2 change(s)
Referenced in: [show references]