1 | static LS ai_dropTokenRefNumbers(LS tok) { |
2 | tok = tok_combineSquareBrackets_keep(tok); |
3 | new LS out; |
4 | for i over tok: { |
5 | S t = get(tok, i+1); |
6 | if (even(i) && isSquareBracketed(t)) ++i; |
7 | else |
8 | out.add(tok.get(i)); |
9 | } |
10 | ret out; |
11 | } |
Began life as a copy of #1021308
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021310 |
Snippet name: | ai_dropTokenRefNumbers |
Eternal ID of this version: | #1021310/1 |
Text MD5: | dfd3d58c54b7b33c18068747d5c435e0 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-08 14:11:08 |
Source code size: | 255 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 286 / 290 |
Referenced in: | [show references] |