static void alwaysRules_standardHandlers() { // Remove (X) addAlwaysRuleHandler("chjllkocfhtwcgoj", voidfunc(Lisp l) { //print("Remove " + l.get(0) + ", ts=" + thoughtSpace()); unemit(l); unemit(l.get(0)); }); // Always fully apply X addAlwaysRuleHandler(ll("anmgnlmdnkjivliq", "anmjmlkwmjbzbiss"), voidfunc(Lisp l) { l = l.get(0); applyRule_all(l, applyAlwaysRules_ruleID()); }); // Fire once: X - not try to apply once, but actually fire once addAlwaysRuleHandler("wrqnygxvjvtpyiwc", voidfunc(Lisp l) { S ruleID = applyAlwaysRules_ruleID(); //print("Trying to fire " + l.get(0)); if (applyRule_first(l.get(0), ruleID)) unemit(ruleID); }); }
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: | #1008177 | 
| Snippet name: | alwaysRules_standardHandlers | 
| Eternal ID of this version: | #1008177/14 | 
| Text MD5: | f9704786a776712a67fb48a78f41aa53 | 
| Author: | stefan | 
| Category: | javax / a.i. | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-05-07 00:13:53 | 
| Source code size: | 725 bytes / 22 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 636 / 666 | 
| Version history: | 13 change(s) | 
| Referenced in: | [show references] |