1 | static String join_flex(L<S> glues, Iterable<String> strings) {
|
2 | if (strings == null) ret ""; |
3 | new StringBuilder buf; |
4 | Iterator<S> i = strings.iterator(); |
5 | Iterator<S> iGlues = glues.iterator(); |
6 | if (i.hasNext()) {
|
7 | buf.append(i.next()); |
8 | while (i.hasNext()) |
9 | buf.append(iGlues.next()).append(i.next()); |
10 | } |
11 | return buf.toString(); |
12 | } |
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: | #1009467 |
| Snippet name: | join_flex (join with varying separators) |
| Eternal ID of this version: | #1009467/4 |
| Text MD5: | dee74036c614f6f74dccf09493946e99 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-23 21:34:18 |
| Source code size: | 361 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 763 / 918 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |