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

9
LINES

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

JavaX fragment (include)

static SS zipTwoTokenizationsToCIMap_strict(LS l1, LS l2) {
  int n = l(l1);
  if (n != l(l2)) null;
  SS map = ciMap();
  for (int i = 1; i < n; i += 2)
    if (!strictPutIC(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 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025754
Snippet name: zipTwoTokenizationsToCIMap_strict - only if length matches and there are no map overwrites
Eternal ID of this version: #1025754/1
Text MD5: 325cfc4f4c3034c513b854c12258d5b7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-17 22:47:02
Source code size: 235 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 129 / 173
Referenced in: [show references]