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).

sS ai_ruleOfThree_solver_1(S db, S input) {
  ret too_transformInput(input, too -> {
    // load rules
    too.addAll(lambdaMap ai_parseBasicLogicRule(tlft(db)));
  
    // turn words appearing in LHS and RHS into variables
    too.addTransformer(f<BasicLogicRule<S>, O> ai_sharedWordsIntoDollarVars);
  
    // match input with rules
    too_flexMatchRulesToTransformInput(too);
  });
}

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: 227 / 387
Version history: 26 change(s)
Referenced in: [show references]