Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1017664 // nlLogic_extractFirstCondition

JavaX fragment (include)

// 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: 331 / 395
Referenced in: [show references]