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

26
LINES

< > BotCompany Repo | #1007700 // aiUsing - record that we are using AI concepts in a calculation - see aiUsing_print

JavaX fragment (include)

sbool aiUsing_enabled;
static Set<S> aiUsing_set = synchroTreeSet();

static S aiUsing(S s) {
  if (aiUsing_enabled)
    aiUsing_set.addAll(aggressivelyCollectPossibleGlobalIDs(s));
  ret s;
}

static void aiUsing(O o) {
  // TODO
}

static <A> L<A> aiUsing(L<A> l) {
  if (aiUsing_enabled)
    for (O li : unnull(l)) aiUsing(li);
  ret l;
}

static Lisp aiUsing(Lisp l) {
  if (aiUsing_enabled && l != null) {
    aiUsing(l.head);
    for (Lisp sub : l) aiUsing(sub);
  }
  ret l;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007700
Snippet name: aiUsing - record that we are using AI concepts in a calculation - see aiUsing_print
Eternal ID of this version: #1007700/15
Text MD5: bbe4f9a68ed56f0986ddc9aa43420a6f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-16 18:56:56
Source code size: 508 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 628 / 620
Version history: 14 change(s)
Referenced in: [show references]