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)

static SymbolSymbol simpleMatchTriple_dollarVars(T3<Symbol> pat, T3<Symbol> t) {
  if (pat == null || t == null) null;
  ret simpleMatchTriple_dollarVars(pat.a, pat.b, pat.c, t);
}
  
static SymbolSymbol simpleMatchTriple_dollarVars(Symbol patA, Symbol patB, Symbol patC, T3<Symbol> t) {
  if (t == null) null;
  new SymbolSymbol match;
  ret matchDollarVarIC(match, patA, t.a)
    && matchDollarVarIC(match, patB, t.b)
    && matchDollarVarIC(match, patC, t.c) ? match : null;
}

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