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

3
LINES

< > BotCompany Repo | #1008658 // appendSpaceIfNempty

JavaX fragment (include)

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

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008658
Snippet name: appendSpaceIfNempty
Eternal ID of this version: #1008658/2
Text MD5: 8903624e49ac03e82ed305275de87e32
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-24 16:15:46
Source code size: 77 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 584 / 638
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010244 - appendIfNempty
#1010341 - addSpaceIfNempty - synonym of appendSpaceIfNempty
#1014055 - appendCommaIfNempty
#1020582 - prependSpaceIfNempty