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

3
LINES

< > BotCompany Repo | #1032758 // appendBracketedCountUnlessOne

JavaX fragment (include)

1  
sS appendBracketedCountUnlessOne(int n, S a default "") {
2  
  ret n == 1 ? a : appendBracketed(a, str(n));
3  
}

Author comment

Began life as a copy of #1026159

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032758
Snippet name: appendBracketedCountUnlessOne
Eternal ID of this version: #1032758/3
Text MD5: 6028ee04746d837f280691e6932c4aa4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 05:03:31
Source code size: 108 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 192
Version history: 2 change(s)
Referenced in: [show references]