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

8
LINES

< > BotCompany Repo | #1034328 // codeTokensFromSubList

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

Libraryless. Click here for Pure Java version (5049L/28K).

static LS codeTokensFromSubList(LS tok, int i, int j) {
  new LS out;
  i = max(i, 0);
  j = min(j, l(tok));
  for (int k = i | 1; k < j; k += 2)
    out.add(tok.get(k));
  ret out;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034328
Snippet name: codeTokensFromSubList
Eternal ID of this version: #1034328/3
Text MD5: 461c33e043acf0285269dca7e6f578e7
Transpilation MD5: 1fb7387084986260b3018577f45ffe54
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-02 20:46:16
Source code size: 190 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 204
Version history: 2 change(s)
Referenced in: [show references]