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

11
LINES

< > BotCompany Repo | #1012753 // RecursiveMatcher

JavaX fragment (include)

1  
srecord RecursiveMatcher(new L matchFunctions) extends IMatchF {
2  
  
3  
  *(O... matchFunctions) { addAll(this.matchFunctions, matchFunctions); }
4  
  
5  
  bool get(O pat, O real, IMatchF elementMatcher, Map map) {
6  
    if (eq(pat, real)) true;
7  
    for (O f : matchFunctions)
8  
      if (isTrue(callF(f, pat, real, this, map))) true;
9  
    false;
10  
  }
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012753
Snippet name: RecursiveMatcher
Eternal ID of this version: #1012753/7
Text MD5: 6d1607322b96bb13e74c6f2ffaa0f35d
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-11 20:10:51
Source code size: 348 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 550 / 1089
Version history: 6 change(s)
Referenced in: [show references]