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)

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

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: 195 / 228
Referenced in: [show references]