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

5
LINES

< > BotCompany Repo | #1002947 // mapPlus - clone map and add items (default to HashMap when map was null)

JavaX fragment (include)

static <A, B> Map<A, B> mapPlus(Map<A, B> m, O... data) {
  m = cloneMap(m);
  litmap_impl(m, data);
  ret m;
}

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: #1002947
Snippet name: mapPlus - clone map and add items (default to HashMap when map was null)
Eternal ID of this version: #1002947/3
Text MD5: 0188d854df961341dc1b4dd1056364c9
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:23:43
Source code size: 115 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 766 / 770
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024485 - mapPlus_noOverwrite
#1029694 - mapPlus_inFront - clone map and add items in front (return LinkedHashMap)