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)

static S snippetWithTitle(S id) {
  if (!isSnippetID(id)) ret id;
  id = formatSnippetID(id);
  ret id + " - " + getSnippetTitle(id);
}

static S snippetWithTitle(Snippet s) {
  ret s == null ? "-" : s.id + " - " + s.title;
}

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: 313 / 340
Referenced in: [show references]