static S dropSuffix(S suffix, S s) { ret s.endsWith(suffix) ? s.substring(0, l(s)-l(suffix)) : s; }
download show line numbers debug dex old transpilations
Travelled to 31 computer(s): aoiabmzegqzx, ayivmpnvhhik, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, hpgrupgrauku, ishqpsrjomds, jcllbfdqhrgy, jozkyjcghlvl, jtubtzbbkimh, lnbujpyubztb, lpdgvwnxivlt, lqnftawlhpir, mqqgnosmbjvj, mqsvbyillbrs, nazvggbglmsf, ofpaelxlmzfo, omdjrrnzbjjv, onxytkatvevr, podlckwnjdmb, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, snaazhdonpnp, tslmcundralx, tvejysmllsmz, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1002048 |
Snippet name: | dropSuffix - note the (maybe) curious argument order |
Eternal ID of this version: | #1002048/1 |
Text MD5: | eaa1943a039a61e8e78ab3bbd1614160 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-27 17:16:32 |
Source code size: | 103 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 498 / 8341 |
Referenced in: | [show references] |
Formerly at http://tinybrain.de/1002048 & http://1002048.tinybrain.de