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

7
LINES

< > BotCompany Repo | #1021680 // lines_possiblyRTrim

JavaX fragment (include)

1  
sS lines_possiblyRTrim(S originalText, LS lines) {
2  
  ret endsWithNewLine(originalText) ? lines(lines) : lines_rtrim(lines);
3  
}
4  
5  
sS lines_possiblyRTrim(LS lines, S originalText) {
6  
  ret lines_possiblyRTrim(originalText, lines);
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021680
Snippet name: lines_possiblyRTrim
Eternal ID of this version: #1021680/3
Text MD5: e3db6b04c93f75be90eb03ef900b5479
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-09 10:18:10
Source code size: 229 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 383
Version history: 2 change(s)
Referenced in: [show references]