Libraryless. Click here for Pure Java version (2050L/13K).
1 | static SS matchesToMapUsingVarList(Matches m, LS vars) { |
2 | if (m == null) null; |
3 | new LinkedHashMap map; |
4 | int n = min(l(m.m), l(vars)); |
5 | for i to n: |
6 | if (!strictPut(map, vars.get(i), m.get(i))) null; |
7 | ret map; |
8 | } |
Began life as a copy of #1021050
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: | #1023855 |
Snippet name: | matchesToMapUsingVarList |
Eternal ID of this version: | #1023855/7 |
Text MD5: | fdd16837fc42b0dfd9eb68c5126f8c1f |
Transpilation MD5: | 555eed21d026dcdb9823f022038fd5ec |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-10 17:14:38 |
Source code size: | 224 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 279 |
Version history: | 6 change(s) |
Referenced in: | [show references] |