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

12
LINES

< > BotCompany Repo | #1018487 // ExpectNumberedLines

JavaX fragment (include)

sclass ExpectNumberedLines > Expecter {
  bool check(O o) {
    if (o cast S) {
      LS l = lines((S) o);
      for i over l:
        if (!startsWith(l.get(i), (i+1) + "."))
          false;
      true;
    }
    false;
  }
}

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: #1018487
Snippet name: ExpectNumberedLines
Eternal ID of this version: #1018487/1
Text MD5: f4d2ae45be864150fb55ba192c2bda35
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 22:05:53
Source code size: 237 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 312 / 855
Referenced in: [show references]