Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1023681 // dropLastTwoLines - not very efficient

JavaX fragment (include)

1  
// if text trails with \n, drops the lines before that
2  
sS dropLastTwoLines(S s) {
3  
  ret dropLastLine(dropLastLine(s));
4  
}

Author comment

Began life as a copy of #1005181

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023681
Snippet name: dropLastTwoLines - not very efficient
Eternal ID of this version: #1023681/1
Text MD5: e654ba06074aa67277ce1763f7e7c079
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-02 18:17:52
Source code size: 123 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 301
Referenced in: [show references]