static S dropAfterMinus(S s) { if (s == null) null; int i = s.indexOf('-'); ret i < 0 ? s : rtrim(substring(s, 0, i)); }
Began life as a copy of #1016109
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022052 |
| Snippet name: | dropAfterMinus - also drops the slash & rtrims |
| Eternal ID of this version: | #1022052/1 |
| Text MD5: | fcf1b2aad4ced6f93b5a0281c839d67b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-06 01:05:18 |
| Source code size: | 130 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 404 / 436 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |