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

10
LINES

< > BotCompany Repo | #1017811 // match_multi

JavaX fragment (include)

static bool match_multi(S s, S... patterns) {
  ret match_multi(s, null, patterns);
}

static bool match_multi(S s, Matches m, S... patterns) {
  for (S pattern : patterns)
    if (match(pattern, s, m))
      true;
  false;
}

Author comment

Began life as a copy of #1011532

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: #1017811
Snippet name: match_multi
Eternal ID of this version: #1017811/1
Text MD5: 407ea07f78687866273be9af4b816fec
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-14 20:14:53
Source code size: 234 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 397 / 430
Referenced in: [show references]