1 | sclass ExpectNumberedLines > Expecter { |
2 | bool check(O o) { |
3 | if (o cast S) { |
4 | LS l = lines((S) o); |
5 | for i over l: |
6 | if (!startsWith(l.get(i), (i+1) + ".")) |
7 | false; |
8 | true; |
9 | } |
10 | false; |
11 | } |
12 | } |
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: | 313 / 857 |
Referenced in: | [show references] |