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

6
LINES

< > BotCompany Repo | #1027419 // hasLineMatching

JavaX fragment (include)

1  
sbool hasLineMatching(S pat, S text) {
2  
  for (S line : linesIterator(text))
3  
    if (match(pat, line))
4  
      true;
5  
  false;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027419
Snippet name: hasLineMatching
Eternal ID of this version: #1027419/1
Text MD5: cb171744429950d5475f3bb9a1e98204
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-18 17:06:53
Source code size: 129 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 176 / 201
Referenced in: [show references]