1 | static SS zipCodeTokensToCIMap_strict_withoutEquals(LS tok1, LS tok2) { |
2 | int n = l(tok1); |
3 | if (n != l(tok2)) null; |
4 | SS map = ciMap(); |
5 | for (int i = 1; i < n; i += 2) |
6 | if (!strictPutICIfKeyNotEqualToValue(map, tok1.get(i), tok2.get(i))) |
7 | null; |
8 | ret map; |
9 | } |
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: | 297 / 334 |
Referenced in: | [show references] |