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

9
LINES

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

JavaX fragment (include)

1  
static SS zipTwoListsToCIMap_strict_withoutEquals(LS l1, LS l2) {
2  
  int n = l(l1);
3  
  if (n != l(l2)) null;
4  
  SS map = ciMap();
5  
  for i to n:
6  
    if (!strictPutICIfKeyNotEqualToValue(map, l1.get(i), l2.get(i)))
7  
      null;
8  
  ret map;
9  
}

Author comment

Began life as a copy of #1021256

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021397
Snippet name: zipTwoListsToCIMap_strict_withoutEquals - only if length matches and there are no map overwrites
Eternal ID of this version: #1021397/1
Text MD5: 1c6c849a2300760f6aabc499d0509a1a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 19:56:11
Source code size: 242 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 352
Referenced in: [show references]