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

8
LINES

< > BotCompany Repo | #1011583 // ai_expandShortenedKeys

JavaX fragment (include)

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

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: 516 / 544
Version history: 10 change(s)
Referenced in: [show references]