1 | sS dropLeadingNumberAndDot_trim(S s) {
|
2 | int i = indexOf(s, '.'); |
3 | if (i < 0) ret s; |
4 | if (isInteger(takeFirst(i, s))) ret trimSubstring(s, i+1); |
5 | ret s; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018490 |
| Snippet name: | dropLeadingNumberAndDot_trim |
| Eternal ID of this version: | #1018490/1 |
| Text MD5: | a0c46291055511ab0241a29992cb7975 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-01 22:20:26 |
| Source code size: | 162 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 498 / 526 |
| Referenced in: | [show references] |