Libraryless. Click here for Pure Java version (5049L/28K).
1 | static LS codeTokensFromSubList(LS tok, int i, int j) { |
2 | new LS out; |
3 | i = max(i, 0); |
4 | j = min(j, l(tok)); |
5 | for (int k = i | 1; k < j; k += 2) |
6 | out.add(tok.get(k)); |
7 | ret out; |
8 | } |
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: | 139 / 205 |
Version history: | 2 change(s) |
Referenced in: | [show references] |