1 | sbool ai_applyFactToFactRules_debug; |
2 | |
3 | static Collection<S> ai_applyFactToFactRules() { |
4 | L<IfThen> rules = ai_parseRulesWithMacros(mL_raw("Fact-to-fact rules")); |
5 | if (ai_applyFactToFactRules_debug) |
6 | print("ai_applyFactToFactRules: " + n2(rules, "rule")); |
7 | Set<S> outFacts = ai_deriveFacts(rules, mL("Random facts")); |
8 | appendToMechList("Derived facts", outFacts); |
9 | ret outFacts; |
10 | } |
11 | |
12 | static LS ai_applyFactToFactRules(S rules, S facts) { |
13 | ret asList(ai_deriveFacts(ai_parseRulesWithMacros(rules), tlft(facts))); |
14 | } |
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: | 396 / 448 |
Version history: | 9 change(s) |
Referenced in: | [show references] |