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

3
LINES

< > BotCompany Repo | #1025849 // roundBracketOptIfMoreThanOneToken

JavaX fragment (include)

1  
sS roundBracketOptIfMoreThanOneToken(S s) {
2  
  ret !tok_isRoundBracketed(s) && numberOfJavaTokens(s) > 1 ? roundBracket(s) : s;
3  
}

Author comment

Began life as a copy of #1017273

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025849
Snippet name: roundBracketOptIfMoreThanOneToken
Eternal ID of this version: #1025849/1
Text MD5: a73f0728e0f46a8a76d68e1ef8b4c79c
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-26 05:35:20
Source code size: 130 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 251 / 262
Referenced in: [show references]