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

3
LINES

< > BotCompany Repo | #1006586 - addPrefixIfNotEmpty

JavaX fragment (include)

static S addPrefixIfNotEmpty(S prefix, S s) {
  ret empty(s) ? "" : prefix + s;
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1006586
Snippet name: addPrefixIfNotEmpty
Eternal ID of this version: #1006586/1
Text MD5: b02081edf58f61ba002d0693ecb8310f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-19 00:07:49
Source code size: 83 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 298 / 332
Referenced in: [show references]

Formerly at http://tinybrain.de/1006586 & http://1006586.tinybrain.de