static L<Map<S, Lisp>> matchCondition_all(Lisp condition, Map<S, Lisp> m) { L<Lisp> facts = lispTruth(); O evaluator = getLispEvaluator(condition.head); if (evaluator != null) ret (L) (isTrue(callF(evaluator, lispReplaceVars(condition, m))) ? ll(m) : ll()); L<Map<S, Lisp>> candidates = new L; for (Lisp fact : facts) { Map<S, Lisp> m2 = cloneMap(m); if (lispMatchIC_xyzVars_sub(condition, fact, m2)) candidates.add(m2); } ret candidates; }
Began life as a copy of #1008125
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008129 |
| Snippet name: | matchCondition_all |
| Eternal ID of this version: | #1008129/3 |
| Text MD5: | da9b5ed85e5133620a232c9a621ef8e4 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-25 16:26:16 |
| Source code size: | 499 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 769 / 762 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1008296 - matchCondition_first |