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

8
LINES

< > BotCompany Repo | #1011583 // ai_expandShortenedKeys

JavaX fragment (include)

1  
static Collection<Sym> ai_expandShortenedKeys(Sym sKey) {
2  
  if (!endsWith(sKey, "...")) ret ll(sKey);
3  
  new LinkedHashSet<Sym> set;
4  
  for position to 3:
5  
    for (TripleRef<Symbol> r : unnull(tripleIndex().getTripleRefs(sKey, position)))
6  
      if (r != null) set.add(r!);
7  
  ret set;
8  
}

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: #1011583
Snippet name: ai_expandShortenedKeys
Eternal ID of this version: #1011583/11
Text MD5: e5eeb204e0726d2bb03ceb8c2ccc2a97
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-31 23:21:35
Source code size: 290 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 517 / 546
Version history: 10 change(s)
Referenced in: [show references]