static IterableIterator<S> scanLog_iterator_allowNonQuoted(S progID, S fileName) { ret scanLog_iterator_allowNonQuoted(getProgramFile(progID, fileName)); } static IterableIterator<S> scanLog_iterator_allowNonQuoted(S fileName) { ret scanLog_iterator_allowNonQuoted(getProgramFile(fileName)); } static IterableIterator<S> scanLog_iterator(File file) { // TODO: opens all at once final Iterator<S> it = chainIterators(map linesFromFile( concatLists(earlierPartsOfLogFile(file), ll(file)))); ret iteratorFromFunction(func -> S { while (it.hasNext()) { S s = it.next(); if (isProperlyQuoted(s)) ret unquote(s); else if (nempty(s)) ret s; } null; }); }
Began life as a copy of #1011458
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: | #1011918 |
Snippet name: | scanLog_iterator_allowNonQuoted |
Eternal ID of this version: | #1011918/1 |
Text MD5: | 5a47aa8fdab835e00c39c58923f9f773 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-10 02:17:32 |
Source code size: | 733 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 397 / 443 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |