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

6
LINES

< > BotCompany Repo | #1017837 // containsNL - uses argument as pattern; checks contains() first

JavaX fragment (include)

1  
sbool containsNL(Collection<S> l, S pat) {
2  
  if (l == null) false;
3  
  if (l.contains(pat)) true;
4  
  for (S s : l) if (match(pat, s)) true;
5  
  false;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017837
Snippet name: containsNL - uses argument as pattern; checks contains() first
Eternal ID of this version: #1017837/3
Text MD5: e582cbcdfa75ba2bbe68e9ad39f0e315
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-16 14:52:28
Source code size: 152 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 338 / 372
Version history: 2 change(s)
Referenced in: [show references]