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

13
LINES

< > BotCompany Repo | #1007723 // aiConceptsPrioritized [dev.]

JavaX fragment (include)

1  
static L<AIConcept> aiConceptsPrioritized() {
2  
  new L<AIConcept> l;
3  
  for (S id : priorityConcepts) {
4  
    AIConcept c = getAIConcept(id);
5  
    if (c == null) print("Warning: Not found " + id);
6  
    addIfNotNull(l, c);
7  
  }
8  
  Set<S> index = new HashSet(priorityConcepts);
9  
  for (AIConcept c : aiConceptsByAge())
10  
    if (!index.contains(c.globalID))
11  
      l.add(c);
12  
  ret l;
13  
}

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: #1007723
Snippet name: aiConceptsPrioritized [dev.]
Eternal ID of this version: #1007723/1
Text MD5: 89afe81304307a5773bad61b63f0e60c
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-02 23:28:49
Source code size: 387 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 565 / 525
Referenced in: [show references]