static S dropStartingFromLast(S a, S b) { if (a == null) null; if (b == null) ret a; int i = a.lastIndexOf(b); ret i < 0 ? a : substring(a, 0, i); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006473 |
Snippet name: | dropStartingFromLast - a string function |
Eternal ID of this version: | #1006473/1 |
Text MD5: | f295e74d3fcb3fc857f5113cdb63d7ff |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-09 15:05:24 |
Source code size: | 161 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 490 / 525 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1006710 - dropUpToFirst |