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

19
LINES

< > BotCompany Repo | #1021490 // jmatch_any

JavaX fragment (include)

sbool jmatch_any(S pat, Iterable<S> l) {
  ret jmatch_any(pat, l, null);
}

sbool jmatch_any(S pat, Iterable<S> l, Matches m) {
  for (S s : unnull(l))
    if (jmatch(pat, s, m))
      true;
  false;
}

sbool jmatch_any(LS patterns, Iterable<S> l, Matches m) {
  if (nempty(patterns))
    for (S s : unnull(l))
      for (S pat : patterns)
        if (jmatch(pat, s, m))
          true;
  false;
}

Author comment

Began life as a copy of #1020831

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021490
Snippet name: jmatch_any
Eternal ID of this version: #1021490/3
Text MD5: d138319b77112319ede1042722caacfb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-15 21:56:57
Source code size: 415 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 298 / 318
Version history: 2 change(s)
Referenced in: [show references]