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

3
LINES

< > BotCompany Repo | #1016479 // addPrefix_orNull - keep null as null and "" as ""

JavaX fragment (include)

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

Author comment

Began life as a copy of #1011947

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016479
Snippet name: addPrefix_orNull - keep null as null and "" as ""
Eternal ID of this version: #1016479/1
Text MD5: 3c7eca0e6aef0d76b50abf75584b0d11
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-19 20:12:58
Source code size: 89 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 452 / 481
Referenced in: [show references]