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

12
LINES

< > BotCompany Repo | #1012836 // ai_expandShortenedKeys_multi

JavaX fragment (include)

1  
static Collection<Symbol> ai_expandShortenedKeys_multi(Iterable<Symbol> l) {
2  
  new LinkedHashSet<Symbol> set;
3  
  if (l != null) for (Symbol sKey : l) if (sKey != null) {
4  
    if (!ai_possiblyShortenedKey(sKey))
5  
      set.add(sKey);
6  
    else
7  
      for (int position = 0; position < 3; position++)
8  
        for (TripleRef<Symbol> r : unnull(tripleIndex().getTripleRefs(sKey, position)))
9  
          if (r != null) set.add(r.get());
10  
  }
11  
  ret set;
12  
}

Author comment

Began life as a copy of #1011583

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: #1012836
Snippet name: ai_expandShortenedKeys_multi
Eternal ID of this version: #1012836/10
Text MD5: c3ffda4a70a01d8d154a5fc7f9ad45d9
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-11 15:44:03
Source code size: 452 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 458
Version history: 9 change(s)
Referenced in: [show references]