Libraryless. Click here for Pure Java version (142L/1K/4K).
1 | !752 |
2 | |
3 | static S expand(S compressed) {
|
4 | L<S> lines = toLines(compressed); |
5 | int count = parseInt(lines.get(1)); |
6 | S line = lines.get(2); |
7 | ret fromLines(repeat(line, count)); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002223 |
| Snippet name: | Simple Text Expander |
| Eternal ID of this version: | #1002223/1 |
| Text MD5: | c9b7f8afdc2f685fa9ba36e495145557 |
| Transpilation MD5: | 5d32c8166c253f0f528748588704d01c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-12-30 00:11:09 |
| Source code size: | 183 bytes / 8 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 828 / 1215 |
| Referenced in: | [show references] |