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

3
LINES

< > BotCompany Repo | #1026159 // appendBracketedCountUnlessZero

JavaX fragment (include)

sS appendBracketedCountUnlessZero(int n, S a) {
  ret n == 0 ? a : appendBracketed(a, str(n));
}

Author comment

Began life as a copy of #1014086

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026159
Snippet name: appendBracketedCountUnlessZero
Eternal ID of this version: #1026159/3
Text MD5: cd20b8023190a62104ebe1e206434bde
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-27 15:55:27
Source code size: 98 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 155 / 217
Version history: 2 change(s)
Referenced in: [show references]