// returns (first condition, rest) or null on null; rest may be null static Pair<Exp> nlLogic_extractFirstCondition(Exp e) { if (e == null) null; if (e cast And) ret pair(e.a, e.b); ret pair(e, null); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017664 |
Snippet name: | nlLogic_extractFirstCondition |
Eternal ID of this version: | #1017664/1 |
Text MD5: | 24da0a3ef5f0bdc7141b63c43998e3e2 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-31 19:14:24 |
Source code size: | 218 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 333 / 397 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1017760 - nlLogic_numberOfLinesReferenced #1017967 - nlLogic_firstCondition #1018255 - nlLogic_hasConditions |