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

9
LINES

< > BotCompany Repo | #1017123 // snippetWithTitle (old) - return snippet ID plus title formatted for user

JavaX fragment (include)

1  
static S snippetWithTitle(S id) {
2  
  if (!isSnippetID(id)) ret id;
3  
  id = formatSnippetID(id);
4  
  ret id + " - " + getSnippetTitle(id);
5  
}
6  
7  
static S snippetWithTitle(Snippet s) {
8  
  ret s == null ? "-" : s.id + " - " + s.title;
9  
}

Author comment

Began life as a copy of #1004807

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017123
Snippet name: snippetWithTitle (old) - return snippet ID plus title formatted for user
Eternal ID of this version: #1017123/1
Text MD5: 4857d6cb0aa7906d7aaa66898449900c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-12 16:34:28
Source code size: 235 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 383 / 406
Referenced in: [show references]