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

3
LINES

< > BotCompany Repo | #1014055 // appendCommaIfNempty

JavaX fragment (include)

static S appendCommaIfNempty(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 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014055
Snippet name: appendCommaIfNempty
Eternal ID of this version: #1014055/1
Text MD5: e8a5abf87104dc9d001fd4c129a51cfe
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-27 19:29:38
Source code size: 71 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 409 / 439
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014093 - appendNewLineIfNempty - also unnulls