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

9
LINES

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

JavaX fragment (include)

static SS zipCodeTokensToCIMap_strict_withoutEquals(LS tok1, LS tok2) {
  int n = l(tok1);
  if (n != l(tok2)) null;
  SS map = ciMap();
  for (int i = 1; i < n; i += 2)
    if (!strictPutICIfKeyNotEqualToValue(map, tok1.get(i), tok2.get(i)))
      null;
  ret map;
}

Author comment

Began life as a copy of #1021397

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: #1022437
Snippet name: zipCodeTokensToCIMap_strict_withoutEquals - only if length matches and there are no map overwrites
Eternal ID of this version: #1022437/1
Text MD5: c9617ea1674ac911048ea55e84f1f557
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-17 12:01:36
Source code size: 275 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 296 / 332
Referenced in: [show references]