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

3
LINES

< > BotCompany Repo | #1030066 // dropTrailingCommaFromAllLines [also rtrims lines]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2850L/18K).

1  
sS dropTrailingCommaFromAllLines(S s) {
2  
  ret mapEachLine(s, line -> dropSuffix(",", rtrim(line)));
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030066
Snippet name: dropTrailingCommaFromAllLines [also rtrims lines]
Eternal ID of this version: #1030066/1
Text MD5: 0e452dce7429957bc29a93758b6c30fc
Transpilation MD5: 88d66e472f3a3cb8ed8d17d07c5bf500
Author: stefan
Category: eleu / javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-04 11:23:00
Source code size: 103 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 281
Referenced in: [show references]