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

12
LINES

< > BotCompany Repo | #1028827 // ai_ruleOfThree_solver_1

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7250L/47K).

1  
sS ai_ruleOfThree_solver_1(S db, S input) {
2  
  ret too_transformInput(input, too -> {
3  
    // load rules
4  
    too.addAll(lambdaMap ai_parseBasicLogicRule(tlft(db)));
5  
  
6  
    // turn words appearing in LHS and RHS into variables
7  
    too.addTransformer(f<BasicLogicRule<S>, O> ai_sharedWordsIntoDollarVars);
8  
  
9  
    // match input with rules
10  
    too_flexMatchRulesToTransformInput(too);
11  
  });
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028827
Snippet name: ai_ruleOfThree_solver_1
Eternal ID of this version: #1028827/27
Text MD5: 140cdadeb5693467a1719e54054b50ca
Transpilation MD5: f2fc9d0954ecf41d8b88db1e8067430b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-11 19:43:49
Source code size: 398 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 228 / 389
Version history: 26 change(s)
Referenced in: [show references]