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

17
LINES

< > BotCompany Repo | #1017907 // matchStartAny

JavaX fragment (include)

1  
static boolean matchStartAny(Collection<S> patterns, S s, Matches m) {
2  
  for (S pattern : unnull(patterns))
3  
    if (matchStart(pattern, s, m))
4  
      ret true;
5  
  ret false;
6  
}
7  
8  
static boolean matchStartAny(Collection<S> patterns, S s) {
9  
  ret matchStartAny(patterns, s, null);
10  
}
11  
12  
static bool matchStartAny(S pat, L<S> l, Matches m) {
13  
  for (S s : unnull(l))
14  
    if (matchStart(pat, s, m))
15  
      true;
16  
  false;
17  
}

Author comment

Began life as a copy of #1002630

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: #1017907
Snippet name: matchStartAny
Eternal ID of this version: #1017907/2
Text MD5: 6d35331b2ec8ba873fa069ff6c39e52e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-20 11:42:57
Source code size: 425 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 342 / 380
Version history: 1 change(s)
Referenced in: [show references]