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

3
LINES

< > BotCompany Repo | #1020582 // prependSpaceIfNempty

JavaX fragment (include)

static S prependSpaceIfNempty(S s) {
  ret empty(s) ? "" : " " + s;
}

Author comment

Began life as a copy of #1008658

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020582
Snippet name: prependSpaceIfNempty
Eternal ID of this version: #1020582/2
Text MD5: 258536c27e29b36f581f04c588149c2a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-06 17:44:25
Source code size: 71 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 285 / 314
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)