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

3
LINES

< > BotCompany Repo | #1022030 // addSlashPrefixIfNempty

JavaX fragment (include)

1  
sS addSlashPrefixIfNempty(S s) {
2  
  ret addPrefixOptIfNempty("/", s);
3  
}

Author comment

Began life as a copy of #1019241

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022030
Snippet name: addSlashPrefixIfNempty
Eternal ID of this version: #1022030/3
Text MD5: 389f74666ed02781f51900aec6aa9476
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-05 21:55:21
Source code size: 72 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 267 / 308
Version history: 2 change(s)
Referenced in: [show references]