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.

static SS zipTwoListsToCIMap_strict(Cl<S> c1, Cl<S> c2) {
  int n = l(c1);
  if (n != l(c2)) null;
  LS l1 = asList(c1), l2 = asList(c2);
  SS map = ciMap();
  for i to n:
    if (!strictPutIC(map, l1.get(i), l2.get(i)))
      null;
  ret map;
}

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: 257 / 342
Version history: 3 change(s)
Referenced in: [show references]