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

10
LINES

< > BotCompany Repo | #1018270 // nlLogic_certainOperatorArgs

JavaX fragment (include)

static Collection<S> nlLogic_certainOperatorArgs(L<Exp> l, S... operators) {
  HashSet<S> set = lithashset(operators);
  new LinkedHashSet<S> out;
  for (Exp e : unnull(l)) {
    if (e cast Func)
      if (set.contains(e.name))
        out.add(nlLogic_text(e.arg));
  }
  ret out;
}

Author comment

Began life as a copy of #1018268

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: #1018270
Snippet name: nlLogic_certainOperatorArgs
Eternal ID of this version: #1018270/3
Text MD5: e19fbdc32ca7f68c494373c86aa16e55
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-13 12:22:18
Source code size: 291 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 314 / 342
Version history: 2 change(s)
Referenced in: [show references]