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

3
LINES

< > BotCompany Repo | #1020370 // emptyIfLongerThan

JavaX fragment (include)

sS emptyIfLongerThan(int max, S s) {
  ret l(s) > max ? "" : s;
}

Author comment

Began life as a copy of #1004824

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: #1020370
Snippet name: emptyIfLongerThan
Eternal ID of this version: #1020370/1
Text MD5: 87e8e084083c52a6842407bca258c0f5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-16 19:07:39
Source code size: 67 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 295 / 332
Referenced in: [show references]