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: | 230 / 391 |
Version history: | 26 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028841 - ai_ruleOfThree_solver_2 (if-then) #1028909 - too_transformInput #1028917 - ai_ruleOfThree_solver_3 - like solver_1 but with shared phrases instead of words |