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

4
LINES

< > BotCompany Repo | #1007416 // conceptToName - returns concept ID if no name found

JavaX fragment (include)

static S conceptToName(S s) {
  AIConcept c = aiConceptsMap_cached().get(s);
  ret c == null || empty(c.name) ? s : c.name;
}

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: #1007416
Snippet name: conceptToName - returns concept ID if no name found
Eternal ID of this version: #1007416/3
Text MD5: b4cc09a0fef20ce59359557ee565e0bb
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-23 15:07:02
Source code size: 128 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 441 / 459
Version history: 2 change(s)
Referenced in: [show references]