1 | static List<String> toLinesFullTrim(String s) { |
2 | ifdef tlft_debug |
3 | print("tlft called on " + l(s) + " chars"); |
4 | endifdef |
5 | new L<S> l; |
6 | for (S line : toLines(s)) if (nempty(line = trim(line))) l.add(line); |
7 | ret l; |
8 | } |
9 | |
10 | static L<S> toLinesFullTrim(File f) { |
11 | new L<S> l; |
12 | for (S line : linesFromFile(f)) if (nempty(line = trim(line))) l.add(line); |
13 | ret l; |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1000641 |
Snippet name: | toLinesFullTrim - trim all lines, drop empty ones, return as list of lines |
Eternal ID of this version: | #1000641/6 |
Text MD5: | 1910c9820de7088d739f2d9c5da51b56 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-16 17:14:55 |
Source code size: | 379 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 829 / 2814 |
Version history: | 5 change(s) |
Referenced in: | [show references] |