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)

static SS zipTwoListsToCIMap_strict_withoutEquals(LS l1, LS l2) {
  int n = l(l1);
  if (n != l(l2)) null;
  SS map = ciMap();
  for i to n:
    if (!strictPutICIfKeyNotEqualToValue(map, l1.get(i), l2.get(i)))
      null;
  ret map;
}

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: 300 / 351
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1021409 - ai_matchTwoTokenizations
#1022437 - zipCodeTokensToCIMap_strict_withoutEquals - only if length matches and there are no map overwrites