Libraryless. Click here for Pure Java version (9920L/55K).
static <A> S joinWithComma(Iterable<A> c) { ret join(", ", c); } sS joinWithComma(O... c) { ret join(", ", c); } sS joinWithComma(S... c) { ret join(", ", c); } ifclass Pair sS joinWithComma(Pair p) { ret p == null ? "" : joinWithComma(str(p.a), str(p.b)); } endif
Began life as a copy of #1008249
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009156 |
Snippet name: | joinWithComma - join with ", " separator |
Eternal ID of this version: | #1009156/6 |
Text MD5: | eb4b1f738c99163ad3c1a44f1e1c7279 |
Transpilation MD5: | f367b80e1fdda9e660f7ce8168847e86 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-16 03:43:44 |
Source code size: | 291 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 706 / 1040 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1017183 - joinWithPlus - join with "+" separator #1023744 - joinWithCommaOr - join with ", " separator, return alternative string when list is empty |