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

3
LINES

< > BotCompany Repo | #1033709 // prependColonSpaceIfNempty

JavaX fragment (include)

sS prependColonSpaceIfNempty(S s) {
  ret empty(s) ? "" : ": " + s;
}

Author comment

Began life as a copy of #1033708

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033709
Snippet name: prependColonSpaceIfNempty
Eternal ID of this version: #1033709/1
Text MD5: 0bb20fc7cafc0145c4cc999aedf6d699
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-28 18:38:42
Source code size: 71 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 56 / 70
Referenced in: [show references]