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

6
LINES

< > BotCompany Repo | #1012408 // hasIndexedShortTerm - very fast, queries all indices

JavaX fragment (include)

1  
static bool hasIndexedShortTerm(S s) {
2  
  if (cachedNodeIndex().containsKey(s)) true;
3  
  for (VirtualNodeIndex i : virtualNodeIndices())
4  
    if (i.hasShortTerm(s)) true;
5  
  false;
6  
}

Author comment

Began life as a copy of #1011653

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: #1012408
Snippet name: hasIndexedShortTerm - very fast, queries all indices
Eternal ID of this version: #1012408/1
Text MD5: 9550ac7300047f4f05ae1c5317dccd1b
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-02 11:37:21
Source code size: 183 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 374
Referenced in: [show references]