1 | static S dropFirstLine(S text) {
|
2 | if (text == null) null; |
3 | int i = text.indexOf('\n');
|
4 | ret i >= 0 ? text.substring(i+1) : ""; |
5 | } |
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: | #1001797 |
| Snippet name: | dropFirstLine |
| Eternal ID of this version: | #1001797/2 |
| Text MD5: | ec25d940822d18db6188d3e59942c82d |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-28 21:17:19 |
| Source code size: | 135 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1217 / 1490 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |