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

3
LINES

< > BotCompany Repo | #1020413 // emptyIfSame

JavaX fragment (include)

1  
sS emptyIfSame(S compareTo, S s) {
2  
  ret eq(s, compareTo) ? "" : s;
3  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020413
Snippet name: emptyIfSame
Eternal ID of this version: #1020413/1
Text MD5: 3fcfddddf13449b56ad8ce0d9298baa2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-19 21:40:23
Source code size: 71 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 283 / 330
Referenced in: [show references]