1 | sS rtrim_fromLines(Collection lines) { |
2 | new StringBuilder buf; |
3 | if (lines != null) { |
4 | bool first = true; |
5 | for (O line : lines) { |
6 | if (first) first = false; else buf.append('\n'); |
7 | buf.append(str(line)); |
8 | } |
9 | } |
10 | ret buf.toString(); |
11 | } |
Began life as a copy of #1002398
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017949 |
Snippet name: | rtrim_fromLines - no \n after last line |
Eternal ID of this version: | #1017949/1 |
Text MD5: | cdc10b5af990fb76c4362d16361ac0ac |
Author: | stefan |
Category: | javac |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-22 23:33:44 |
Source code size: | 264 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 493 / 517 |
Referenced in: | [show references] |