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

8
LINES

< > BotCompany Repo | #1010833 // ai_renderList

JavaX fragment (include)

1  
static S ai_renderList(L l) {
2  
  ret ai_renderList(l, "-");
3  
}
4  
5  
static S ai_renderList(L l, S defaultValue) {
6  
  if (empty(l)) ret defaultValue;
7  
  ret joinWithComma(allToString(l));
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010833
Snippet name: ai_renderList
Eternal ID of this version: #1010833/3
Text MD5: d3f5086de456b94ba395d22c06d3a82d
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-27 05:01:28
Source code size: 187 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 386 / 452
Version history: 2 change(s)
Referenced in: [show references]