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

8
LINES

< > BotCompany Repo | #1023855 // matchesToMapUsingVarList

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2050L/13K).

static SS matchesToMapUsingVarList(Matches m, LS vars) {
  if (m == null) null;
  new LinkedHashMap map;
  int n = min(l(m.m), l(vars));
  for i to n:
    if (!strictPut(map, vars.get(i), m.get(i))) null;
  ret map;
}

Author comment

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: 192 / 275
Version history: 6 change(s)
Referenced in: [show references]