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

8
LINES

< > BotCompany Repo | #1017879 // nlLogic_constructNames

JavaX fragment (include)

static Set<S> nlLogic_constructNames(Exp exp) {
  final new HashSet<S> set;
  nlLogic_visitShallow(exp, voidfunc(O o) {
    if (o cast Func) set.add(o.name);
    if (o cast Literal) set.add(o.text());
  });
  ret set;
}

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: #1017879
Snippet name: nlLogic_constructNames
Eternal ID of this version: #1017879/3
Text MD5: 59e026b5d065e7e1b18a6ae452389d06
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-19 00:24:14
Source code size: 226 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 400 / 413
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)