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

6
LINES

< > BotCompany Repo | #1005968 // getSnippetTitleOpt - turn id into title if it is an id, otherwise return string verbatim

JavaX fragment (include)

1  
static S getSnippetTitleOpt(S s) {
2  
  pcall {
3  
    ret isSnippetID(s) ? getSnippetTitle(s) : s;
4  
  }
5  
  ret s;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005968
Snippet name: getSnippetTitleOpt - turn id into title if it is an id, otherwise return string verbatim
Eternal ID of this version: #1005968/2
Text MD5: a8479905cafa1eacbfca1d7727db6d28
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-22 23:40:39
Source code size: 113 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 558 / 588
Version history: 1 change(s)
Referenced in: [show references]