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)

static Collection<Symbol> ai_expandShortenedKeys_multi(Iterable<Symbol> l) {
  new LinkedHashSet<Symbol> set;
  if (l != null) for (Symbol sKey : l) if (sKey != null) {
    if (!ai_possiblyShortenedKey(sKey))
      set.add(sKey);
    else
      for (int position = 0; position < 3; position++)
        for (TripleRef<Symbol> r : unnull(tripleIndex().getTripleRefs(sKey, position)))
          if (r != null) set.add(r.get());
  }
  ret set;
}

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: 436 / 457
Version history: 9 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)