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

4
LINES

< > BotCompany Repo | #1030365 // dropTrailingRoundBracketStuff

JavaX fragment (include)

sS dropTrailingRoundBracketStuff(S s) {
  if (!endsWith(s, ")")) ret s;
  ret trimSubstring(s, 0, smartLastIndexOf(s, '('));
}

Author comment

Began life as a copy of #1016485

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030365
Snippet name: dropTrailingRoundBracketStuff
Eternal ID of this version: #1030365/1
Text MD5: 9163d48cd35a22b07cea3c168c3880eb
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-09 18:03:59
Source code size: 129 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 205
Referenced in: [show references]