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

11
LINES

< > BotCompany Repo | #1012753 // RecursiveMatcher

JavaX fragment (include)

srecord RecursiveMatcher(new L matchFunctions) extends IMatchF {
  
  *(O... matchFunctions) { addAll(this.matchFunctions, matchFunctions); }
  
  bool get(O pat, O real, IMatchF elementMatcher, Map map) {
    if (eq(pat, real)) true;
    for (O f : matchFunctions)
      if (isTrue(callF(f, pat, real, this, map))) true;
    false;
  }
}

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: 549 / 1087
Version history: 6 change(s)
Referenced in: [show references]