Libraryless. Click here for Pure Java version (47L/1K).
1 | sS recursiveJoin(Iterable l) {
|
2 | new StringBuilder buf; |
3 | recursiveJoin_impl(buf, l); |
4 | ret str(buf); |
5 | } |
6 | |
7 | svoid recursiveJoin_impl(StringBuilder buf, Iterable l) {
|
8 | if (l != null) for (O o : l) |
9 | if (o cast Iterable) |
10 | recursiveJoin_impl(buf, o); |
11 | else |
12 | buf.append(o); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027159 |
| Snippet name: | recursiveJoin - e.g. for recursiveJavaTok |
| Eternal ID of this version: | #1027159/3 |
| Text MD5: | b3769282a106a5062841e4ceb66e640c |
| Transpilation MD5: | cbb9568c3925044504ccb87790740f01 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-22 17:34:31 |
| Source code size: | 296 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 363 / 477 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |