static LS ai_dropTokenRefNumbers(LS tok) { tok = tok_combineSquareBrackets_keep(tok); new LS out; for i over tok: { S t = get(tok, i+1); if (even(i) && isSquareBracketed(t)) ++i; else out.add(tok.get(i)); } ret out; }
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: | 287 / 290 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |