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

5
LINES

< > BotCompany Repo | #1013585 - deSquareBracket

JavaX fragment (include)

static S deSquareBracket(S s) {
  if (startsWith(s, "[") && endsWith(s, "]"))
    ret substring(s, 1, l(s)-1);
  ret s;
}

Author comment

Began life as a copy of #1013446

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1013585
Snippet name: deSquareBracket
Eternal ID of this version: #1013585/1
Text MD5: aaac02e07f43106aeaa756c7da0c1db9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-11 12:51:13
Source code size: 125 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 221 / 210
Referenced in: [show references]

Formerly at http://tinybrain.de/1013585 & http://1013585.tinybrain.de