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

4
LINES

< > BotCompany Repo | #1024486 // litmap_impl_noOverwrite

JavaX fragment (include)

svoid litmap_impl_noOverwrite(Map map, O... x) {
  if (x != null) for (int i = 0; i < x.length-1; i += 2)
    putIfNotThere(map, x[i], x[i+1]);
}

Author comment

Began life as a copy of #1001695

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024486
Snippet name: litmap_impl_noOverwrite
Eternal ID of this version: #1024486/1
Text MD5: 751fb7e084c8cb90e43943aad1c30c01
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-13 22:38:44
Source code size: 148 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 255 / 300
Referenced in: [show references]