sbool ai_applyFactToFactRules_debug; static Collection<S> ai_applyFactToFactRules() { L<IfThen> rules = ai_parseRulesWithMacros(mL_raw("Fact-to-fact rules")); if (ai_applyFactToFactRules_debug) print("ai_applyFactToFactRules: " + n2(rules, "rule")); Set<S> outFacts = ai_deriveFacts(rules, mL("Random facts")); appendToMechList("Derived facts", outFacts); ret outFacts; } static LS ai_applyFactToFactRules(S rules, S facts) { ret asList(ai_deriveFacts(ai_parseRulesWithMacros(rules), tlft(facts))); }
Began life as a copy of #1017727
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017829 |
Snippet name: | ai_applyFactToFactRules |
Eternal ID of this version: | #1017829/10 |
Text MD5: | 2bdfff3f3d14135a3a06315c4d0027df |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-03 19:22:19 |
Source code size: | 531 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 395 / 447 |
Version history: | 9 change(s) |
Referenced in: | [show references] |