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

7
LINES

< > BotCompany Repo | #1021550 // tok_dropAfterRoundBracketStuff

JavaX fragment (include)

sS tok_dropAfterRoundBracketStuff(S s) {
  LS tok = javaTokWithBrackets(s);
  for (int i = 1; i < l(tok); i += 2)
    if (isRoundBracketed(tok.get(i)))
      ret joinSubList(tok, 0, i+1);
  ret s;
}

Author comment

Began life as a copy of #1021383

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: #1021550
Snippet name: tok_dropAfterRoundBracketStuff
Eternal ID of this version: #1021550/1
Text MD5: 3ced5d317c330d9644a0bd44753bbaf1
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:05:41
Source code size: 204 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 316 / 359
Referenced in: [show references]