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

6
LINES

< > BotCompany Repo | #1006710 // dropUpToFirst

JavaX fragment (include)

static S dropUpToFirst(S a, S b) {
  if (a == null) null;
  if (b == null) ret a;
  int i = a.indexOf(b);
  ret i < 0 ? a : substring(a, i+l(b));
}

Author comment

Began life as a copy of #1006473

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006710
Snippet name: dropUpToFirst
Eternal ID of this version: #1006710/1
Text MD5: 99e5d709dbcf7da41d7e72ae0cea4dc1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-02 21:34:53
Source code size: 152 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 495 / 527
Referenced in: [show references]