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

7
LINES

< > BotCompany Repo | #1021050 // matchesToMap - uses "$1", "$2" keys...

JavaX fragment (include)

static SS matchesToMap(Matches m) {
  if (m == null) null;
  new LinkedHashMap map;
  for (int i = 0; i < l(m.m); i++)
    map.put("$" + (i+1), m.get(i));
  ret map;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021050
Snippet name: matchesToMap - uses "$1", "$2" keys...
Eternal ID of this version: #1021050/2
Text MD5: 858ca87f73c5291b00771af52e04b6a8
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:07:18
Source code size: 173 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 315 / 351
Version history: 1 change(s)
Referenced in: [show references]