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

11
LINES

< > BotCompany Repo | #1015258 // join_gen

JavaX fragment (include)

1  
public static S join_gen(S glue, Iterable strings) {
2  
  if (strings == null) ret "";
3  
  new StringBuilder buf;
4  
  Iterator<O> i = strings.iterator();
5  
  if (i.hasNext()) {
6  
    buf.append(str(i.next()));
7  
    while (i.hasNext())
8  
      buf.append(glue).append(str(i.next()));
9  
  }
10  
  ret buf.toString();
11  
}

Author comment

Began life as a copy of #1000810

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: #1015258
Snippet name: join_gen
Eternal ID of this version: #1015258/1
Text MD5: 8473c0e52f436e385c965bdc8658e0cb
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-11 03:29:41
Source code size: 306 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 406 / 405
Referenced in: [show references]