1 | srecord ExpectForEachLine(Expecter sub) extends Expecter { |
2 | bool check(O o) { |
3 | if (o cast S) { |
4 | for (S line : lines_iterator(o)) |
5 | if (!sub.check(line)) false; |
6 | true; |
7 | } |
8 | false; |
9 | } |
10 | } |
Began life as a copy of #1018478
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018481 |
Snippet name: | ExpectForEachLine |
Eternal ID of this version: | #1018481/5 |
Text MD5: | 119e0227a4aa8b429bace3873ef8a19a |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-01 18:14:48 |
Source code size: | 218 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 381 / 912 |
Version history: | 4 change(s) |
Referenced in: | [show references] |