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

4
LINES

< > BotCompany Repo | #1016485 // dropTrailingSquareBracketStuff

JavaX fragment (include)

static S dropTrailingSquareBracketStuff(S s) {
  if (!endsWith(s, "]")) ret s;
  ret trimSubstring(s, 0, smartLastIndexOf(s, '['));
}

Author comment

Began life as a copy of #1014578

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016485
Snippet name: dropTrailingSquareBracketStuff
Eternal ID of this version: #1016485/3
Text MD5: 8c0a58f8c7d1af8131f908b596d7e350
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-16 23:02:06
Source code size: 136 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 363 / 388
Version history: 2 change(s)
Referenced in: [show references]