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

6
LINES

< > BotCompany Repo | #1030098 - dropEmptyLines

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

Libraryless. Click here for Pure Java version (2749L/17K).

sS dropEmptyLines(S text) {
  new LS lines;
  for (S line : lines(text))
    if (nempty(line)) lines.add(line);
  ret lines_possiblyRTrim(lines, text);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030098
Snippet name: dropEmptyLines
Eternal ID of this version: #1030098/2
Text MD5: 438399fe5d218757a7da0246885ec31e
Transpilation MD5: ada633f2a55c3f77c19140a8296a25b0
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:17:48
Source code size: 158 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 35 / 58
Version history: 1 change(s)
Referenced in: [show references]

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