1 | static S joinWithComma_specialLast(L<S> l, S lastSep) { |
2 | if (empty(l)) ret ""; |
3 | L<S> separators = rep(", ", l(l)-2); |
4 | separators.add(lastSep); |
5 | ret join_flex(separators, l); |
6 | } |
Began life as a copy of #1009473
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018001 |
Snippet name: | joinWithComma_specialLast |
Eternal ID of this version: | #1018001/1 |
Text MD5: | aefbb539864d2df41dfb9d2aa77566a6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-25 11:45:29 |
Source code size: | 184 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 362 / 508 |
Referenced in: | [show references] |