static S dropFirstLine(S text) { if (text == null) null; int i = text.indexOf('\n'); ret i >= 0 ? text.substring(i+1) : ""; }
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: | 741 / 1012 |
Version history: | 1 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1002554 - firstLine #1005181 - dropLastLine #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |