sS tok_dropStuffInRoundBrackets(S s) { LS tok = javaTokWithBrackets(s); tok_dropStuffInRoundBrackets(tok); ret join(simpleSpaces2(tok)); } static LS tok_dropStuffInRoundBrackets(LS tok) { for (int i = 1; i < l(tok); i += 2) if (isRoundBracketed(tok.get(i))) removeToken(tok, (i -= 2) + 2); ret tok; }
Began life as a copy of #1014085
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: | #1021379 |
Snippet name: | tok_dropStuffInRoundBrackets - also simplifies spaces |
Eternal ID of this version: | #1021379/6 |
Text MD5: | a3da578179a6f5a469c2d42345fc87f3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-17 19:16:48 |
Source code size: | 332 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 330 / 386 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |