static bool isProbableChatLog(File f) { try { ret isProbableChatLog(toLines(f)); // TODO: scan one line } catch { false; } } static bool isProbableChatLog(L<S> lines) { if (empty(lines)) false; S s = lines.get(0); ret s.startsWith("[") && contains(s, ']'); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003917 |
| Snippet name: | isProbableChatLog |
| Eternal ID of this version: | #1003917/1 |
| Text MD5: | 3164f72eed70185da0ab8498298f74c9 |
| Author: | stefan |
| Category: | javax / talking robots |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-07-31 23:07:55 |
| Source code size: | 291 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 780 / 752 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |