sS dropLeadingNumberAndDot_trim(S s) { int i = indexOf(s, '.'); if (i < 0) ret s; if (isInteger(takeFirst(i, s))) ret trimSubstring(s, i+1); ret s; }
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: | 495 / 522 |
| Referenced in: | [show references] |