Warning: session_start(): open(/var/lib/php/sessions/sess_ghn362d6mn1pld9dktdqsdlftn, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
lines_possiblyRTrim [1021680]

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

7
LINES

< > BotCompany Repo | #1021680 // lines_possiblyRTrim

JavaX fragment (include)

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

sS lines_possiblyRTrim(LS lines, S originalText) {
  ret lines_possiblyRTrim(originalText, lines);
}

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: 970 / 989
Version history: 2 change(s)
Referenced in: [show references]