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

7
LINES

< > BotCompany Repo | #1023885 // appendRoundBracketed

JavaX fragment (include)

sS appendRoundBracketed(S b) {
  ret empty(b) ? "" : "" + " (" + b + ")";
}

sS appendRoundBracketed(S a, S b) {
  ret empty(b) ? a : a + appendRoundBracketed(b);
}

Author comment

Began life as a copy of #1017409

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: #1023885
Snippet name: appendRoundBracketed
Eternal ID of this version: #1023885/1
Text MD5: 7f21b6a72a97bbe01df94a7f72960db8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-11 16:40:34
Source code size: 170 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 260 / 301
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)