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

10
LINES

< > BotCompany Repo | #1021256 // zipTwoListsToCIMap_strict - only if length matches and there are no map overwrites

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2512L) is out of date.

1  
static SS zipTwoListsToCIMap_strict(Cl<S> c1, Cl<S> c2) {
2  
  int n = l(c1);
3  
  if (n != l(c2)) null;
4  
  LS l1 = asList(c1), l2 = asList(c2);
5  
  SS map = ciMap();
6  
  for i to n:
7  
    if (!strictPutIC(map, l1.get(i), l2.get(i)))
8  
      null;
9  
  ret map;
10  
}

Author comment

Began life as a copy of #1018576

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021256
Snippet name: zipTwoListsToCIMap_strict - only if length matches and there are no map overwrites
Eternal ID of this version: #1021256/4
Text MD5: c9462f4ce562a185d7ae7f6453c2a7cb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 14:43:14
Source code size: 254 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 322 / 420
Version history: 3 change(s)
Referenced in: [show references]