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

3
LINES

< > BotCompany Repo | #1021680 - lines_possiblyRTrim

JavaX fragment (include)

sS lines_possiblyRTrim(S originalText, LS lines) {
  ret endsWithNewLine(originalText) ? lines(lines) : lines_rtrim(lines);
}

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1021680
Snippet name: lines_possiblyRTrim
Eternal ID of this version: #1021680/2
Text MD5: 5d70551855218fb738f6ebb96013090d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-20 00:02:48
Source code size: 127 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 92 / 107
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1021680 & http://1021680.tinybrain.de