1 | prepend: |
2 | |
3 | List<String> result = new ArrayList<String>(); |
4 | for line in toLines(s) { |
5 | |
6 | append: |
7 | |
8 | result.add(line); |
9 | } |
10 | return fromLines(result); |
Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
Snippet ID: | #2000334 |
Snippet name: | Line replacer to text replacer (pseudo code) |
Eternal ID of this version: | #2000334/1 |
Text MD5: | 227e2eca8f1d8f81effe27b90283a946 |
Author: | stefan |
Category: | javax |
Type: | New Tinybrain snippet |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-05-06 19:34:07 |
Source code size: | 160 bytes / 10 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 875 / 140 |
Referenced in: | [show references] |