1 | static IterableIterator<S> scanLog_iterator(S progID, S fileName) { |
2 | ret scanLog_iterator(getProgramFile(progID, fileName)); |
3 | } |
4 | |
5 | static IterableIterator<S> scanLog_iterator(S fileName) { |
6 | ret scanLog_iterator(getProgramFile(fileName)); |
7 | } |
8 | |
9 | static IterableIterator<S> scanLog_iterator(File file) { |
10 | // TODO: opens all at once |
11 | final Iterator<S> it = chainIterators(map linesFromFile( |
12 | concatLists(earlierPartsOfLogFile(file), ll(file)))); |
13 | ret iteratorFromFunction(func -> S { |
14 | while (it.hasNext()) { |
15 | S s = it.next(); |
16 | if (isProperlyQuoted(s)) |
17 | ret unquote(s); |
18 | } |
19 | null; |
20 | }); |
21 | } |
Began life as a copy of #1001948
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011458 |
Snippet name: | scanLog_iterator - scan log made with logQuoted. TODO: closing if interrupted |
Eternal ID of this version: | #1011458/6 |
Text MD5: | 704fcab89647e058a20aad8bd2ec9368 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-03 15:04:01 |
Source code size: | 630 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 430 / 485 |
Version history: | 5 change(s) |
Referenced in: | [show references] |