Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1018481 // ExpectForEachLine

JavaX fragment (include)

srecord ExpectForEachLine(Expecter sub) extends Expecter {
  bool check(O o) {
    if (o cast S) {
      for (S line : lines_iterator(o))
        if (!sub.check(line)) false;
      true;
    }
    false;
  }
}

Author comment

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: 380 / 910
Version history: 4 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)