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


< > BotCompany Repo | #1002935 // addPrefix - add prefix if not there

JavaX fragment (include)

static S addPrefix(S prefix, S s) {
  ret s.startsWith(prefix) ? s : prefix + s;

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002935
Snippet name: addPrefix - add prefix if not there
Eternal ID of this version: #1002935/1
Text MD5: da2fddf17c0a860872163806546e064c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-07 20:57:20
Source code size: 84 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 609 / 4560
Referenced in: [show references]