static void nlLogic_iterate_withOnFail(final NLLogicChecker_v2 c, Exp e, final NLLogicChecker_v2.Matching m, final Runnable onMatch, final VF1<Exp> onFail) { final new Flag anyResults; if (e cast And) { final Exp b = e.b; c.iterate_single(e.a, m, r { anyResults.raise(); nlLogic_iterate_withOnFail(c, b, m, onMatch, onFail) }); } else c.iterate_single(e, m, r { anyResults.raise(); callF(onMatch); }); if (!anyResults.isUp()) callF(onFail, e); }
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: | #1018313 |
Snippet name: | nlLogic_iterate_withOnFail - calls onFail when a term doesn't yield any results |
Eternal ID of this version: | #1018313/10 |
Text MD5: | 22d490e79fe89a3d415bd762c16f09dc |
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-19 17:06:25 |
Source code size: | 526 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 362 / 408 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1018319 - nlLogic_iterate_collectFailedConditions #1018332 - nlLogic_iterate_withOnFail2 - calls onFail when a term doesn't yield any results |