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

8
LINES

< > BotCompany Repo | #1012145 // strictlitmapOrNull

JavaX fragment (include)

1  
static HashMap strictlitmapOrNull(O... params) {
2  
  int n = l(params);
3  
  new HashMap map;
4  
  for (int i = 0; i < n; i += 2)
5  
    if (!mapPutStrictly(map, params[i], params[i+1]))
6  
      null;
7  
  ret map;
8  
}

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: #1012145
Snippet name: strictlitmapOrNull
Eternal ID of this version: #1012145/2
Text MD5: 4bf3e559ad0a461ce21b9ebd7918c4aa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-21 11:35:12
Source code size: 207 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 308 / 347
Version history: 1 change(s)
Referenced in: [show references]