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

11
LINES

< > BotCompany Repo | #1015258 // join_gen

JavaX fragment (include)

public static S join_gen(S glue, Iterable strings) {
  if (strings == null) ret "";
  new StringBuilder buf;
  Iterator<O> i = strings.iterator();
  if (i.hasNext()) {
    buf.append(str(i.next()));
    while (i.hasNext())
      buf.append(glue).append(str(i.next()));
  }
  ret buf.toString();
}

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: 405 / 404
Referenced in: [show references]