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

6
LINES

< > BotCompany Repo | #1018029 // ai_addFactsToSet

JavaX fragment (include)

static int ai_addFactsToSet(Set<S> set, LS newFacts) {
  int n = 0;
  for (S fact : newFacts)
    if (!set.contains("Untrue: " + fact) && set.add(fact)) ++n;
  ret n;
}

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: #1018029
Snippet name: ai_addFactsToSet
Eternal ID of this version: #1018029/2
Text MD5: 36bd7aac41c850fef6df2feb4e210e69
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-26 17:13:38
Source code size: 173 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 383 / 406
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018031 - ai_addFactsToMechList