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

12
LINES

< > BotCompany Repo | #1012621 // simpleMatchTriple_dollarVars - handles repeating vars but not vars in part of a third

JavaX fragment (include)

1  
static SymbolSymbol simpleMatchTriple_dollarVars(T3<Symbol> pat, T3<Symbol> t) {
2  
  if (pat == null || t == null) null;
3  
  ret simpleMatchTriple_dollarVars(pat.a, pat.b, pat.c, t);
4  
}
5  
  
6  
static SymbolSymbol simpleMatchTriple_dollarVars(Symbol patA, Symbol patB, Symbol patC, T3<Symbol> t) {
7  
  if (t == null) null;
8  
  new SymbolSymbol match;
9  
  ret matchDollarVarIC(match, patA, t.a)
10  
    && matchDollarVarIC(match, patB, t.b)
11  
    && matchDollarVarIC(match, patC, t.c) ? match : null;
12  
}

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: #1012621
Snippet name: simpleMatchTriple_dollarVars - handles repeating vars but not vars in part of a third
Eternal ID of this version: #1012621/7
Text MD5: 609047426a08253b3a71bf2da56b074a
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 15:53:56
Source code size: 490 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 472 / 470
Version history: 6 change(s)
Referenced in: [show references]