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

6
LINES

< > BotCompany Repo | #1018029 // ai_addFactsToSet

JavaX fragment (include)

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

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: 384 / 408
Version history: 1 change(s)
Referenced in: [show references]