static Exp nlLogic_transformShallow(Exp e, F1<Exp> f) { if (e == null) null; if (e cast And) ret And(nlLogic_transformShallow(e.a, f), nlLogic_transformShallow(e.b, f)); if (e cast ExpNot) ret ExpNot(nlLogic_transformShallow(e.a, f)); ret callF(f, e); } static IfThen nlLogic_transformShallow(IfThen rule, F1<Exp> f) { if (rule == null) null; rule = (IfThen) shallowClone(rule); rule.in = nlLogic_transformShallow(rule.in, f); rule.out = nlLogic_transformShallow(rule.out, f); ret rule; }
Began life as a copy of #1017880
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: | #1018214 |
Snippet name: | nlLogic_transformShallow - doesn't go inside Func |
Eternal ID of this version: | #1018214/7 |
Text MD5: | 8b3733a214a8fad8ae9160fe47f4ed3a |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-10 12:36:03 |
Source code size: | 530 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 356 / 399 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |