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

3
LINES

< > BotCompany Repo | #1002110 - dropPrefix

JavaX fragment (include)

static S dropPrefix(S prefix, S s) {
  ret s == null ? null : s.startsWith(prefix) ? s.substring(l(prefix)) : s;
}

Author comment

Began life as a copy of #1002048

download  show line numbers  debug dex   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1002110
Snippet name: dropPrefix
Eternal ID of this version: #1002110/2
Text MD5: f8a91c195d4d4e3baf4c86e87de28d7c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-28 18:53:17
Source code size: 116 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 507 / 2081
Version history: 1 change(s)
Referenced in: [show references]

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