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

8
LINES

< > BotCompany Repo | #1017878 // nlLogic_filterByRHSConstructs - allows ONLY those constructs, plus harmless ones

JavaX fragment (include)

static L<IfThen> nlLogic_filterByRHSConstructs(L<IfThen> rules, S... constructs) {
  ret nlLogic_filterByRHSConstructs(rules, asHashSet(constructs));
}

static L<IfThen> nlLogic_filterByRHSConstructs(L<IfThen> rules, final Set<S> _constructs) {
  final Set<S> constructs = setPlus(_constructs, 'newID);
  ret [IfThen r : rules | isSuperSet(constructs, nlLogic_constructNames(r.out))];
}

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: #1017878
Snippet name: nlLogic_filterByRHSConstructs - allows ONLY those constructs, plus harmless ones
Eternal ID of this version: #1017878/4
Text MD5: f73c8cc4c6308bce1147f14992127af1
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-29 02:57:36
Source code size: 393 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 341 / 363
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018151 - nlLogic_containingAnyRHSConstruct
#1020041 - nlLogic_testsOnly