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

3
LINES

< > BotCompany Repo | #1011947 // addPrefixIfNotEmpty2 - add if not there

JavaX fragment (include)

1  
static S addPrefixIfNotEmpty2(S prefix, S s) {
2  
  ret empty(s) ? "" : addPrefix(prefix, s);
3  
}

Author comment

Began life as a copy of #1006586

download  show line numbers  debug dex  old transpilations   

Travelled to 23 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, elmgxqgtpvxh, gjtlkbvenryc, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, lqnftawlhpir, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, qsqiayxyrbia, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, xrpafgyirdlv

No comments. add comment

Snippet ID: #1011947
Snippet name: addPrefixIfNotEmpty2 - add if not there
Eternal ID of this version: #1011947/2
Text MD5: 6f15a0deba8a357b1f9b67ad8963a800
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-01 12:02:36
Source code size: 94 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 7051
Version history: 1 change(s)
Referenced in: [show references]