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

13
LINES

< > BotCompany Repo | #1007638 // Agent_abs_NameToMarker

JavaX fragment (include)

Agent > Agent_abs_NameToMarker {
  S marker;
  O tester; // func(S) -> bool
  
  *() {}
  *(S *marker, O *tester) {}
  
  void impl {
    for (AIConcept c : aiConcepts())
      if (isTrue(pcallF(tester, c.name)))
        emit(marker + " " + c.globalID);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007638
Snippet name: Agent_abs_NameToMarker
Eternal ID of this version: #1007638/1
Text MD5: c363fc9e0575174c106aa2a2e0cad34b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-30 11:47:34
Source code size: 271 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 551 / 1129
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)