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

6
LINES

< > BotCompany Repo | #1025504 // minusLinesContaining

JavaX fragment (include)

sS minusLinesContaining(S pat, S s) {
  LS lines = lines(s);
  LS lines2 = filter(lines, l -> !contains(l, pat));
  if (l(lines2) == l(lines)) ret s;
  ret lines_possiblyRTrim(s, lines2);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025504
Snippet name: minusLinesContaining
Eternal ID of this version: #1025504/1
Text MD5: 82bff8b3f6e4f4144892ed4a072c3d7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-01 15:52:09
Source code size: 194 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 117 / 152
Referenced in: [show references]