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

6
LINES

< > BotCompany Repo | #1033114 // codeTokenIndex

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

Libraryless. Click here for Pure Java version (4474L/25K).

static MultiMap<S, Int> codeTokenIndex(LS tok) {
  new MultiMap<S, Int> index;
  for (int i = 1; i < l(tok); i += 2)
    index.put(tok.get(i), i);
  ret index;
}

Author comment

Began life as a copy of #1033113

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033114
Snippet name: codeTokenIndex
Eternal ID of this version: #1033114/1
Text MD5: b5734739193cbe407c946e8ac25cd8a9
Transpilation MD5: fe8cefd02badc030bd0262d8772d976f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-15 15:01:31
Source code size: 166 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 220
Referenced in: [show references]