static S dropAnyPrefix(S s, S... prefixes) { if (nempty(s)) for (S prefix : prefixes) if (startsWith(s, prefix)) ret substring(s, l(prefix)); ret s; }
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: | #1013277 |
Snippet name: | dropAnyPrefix - quits after first prefix found |
Eternal ID of this version: | #1013277/1 |
Text MD5: | 67471b229259cc85ecea83985f825ae0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-31 06:23:48 |
Source code size: | 178 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 490 / 499 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |