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

13
LINES

< > BotCompany Repo | #1009156 - joinWithComma - join with ", " separator

JavaX fragment (include)

static <A> S joinWithComma(Collection<A> c) {
  ret join(", ", c);
}

static S joinWithComma(S... c) {
  ret join(", ", c);
}

ifclass Pair
sS joinWithComma(Pair p) {
  ret p == null ? "" : joinWithComma(str(p.a), str(p.b));
}
endif

Author comment

Began life as a copy of #1008249

download  show line numbers  debug dex   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1009156
Snippet name: joinWithComma - join with ", " separator
Eternal ID of this version: #1009156/4
Text MD5: 6cb7590dbe7c07a3a8daa0cf665da434
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-24 18:56:36
Source code size: 244 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 288 / 531
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1009156 & http://1009156.tinybrain.de