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

17
LINES

< > BotCompany Repo | #1017907 // matchStartAny

JavaX fragment (include)

static boolean matchStartAny(Collection<S> patterns, S s, Matches m) {
  for (S pattern : unnull(patterns))
    if (matchStart(pattern, s, m))
      ret true;
  ret false;
}

static boolean matchStartAny(Collection<S> patterns, S s) {
  ret matchStartAny(patterns, s, null);
}

static bool matchStartAny(S pat, L<S> l, Matches m) {
  for (S s : unnull(l))
    if (matchStart(pat, s, m))
      true;
  false;
}

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: 341 / 379
Version history: 1 change(s)
Referenced in: [show references]