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

17
LINES

< > BotCompany Repo | #1004288 // gMatch

JavaX fragment (include)

1  
static IterableIterator<Matches> gMatch(final S pat) {
2  
  final L<S> log = gLog();
3  
  
4  
  ret new IterableIterator<Matches>() {
5  
    int i = l(log);
6  
    new Matches m;
7  
    
8  
    public bool hasNext() {
9  
      while (--i >= 0 && !match(pat, get(log, i), m));
10  
      ret i >= 0;
11  
    }
12  
    
13  
    public Matches next() {
14  
      ret m;
15  
    }
16  
  };
17  
}

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: #1004288
Snippet name: gMatch
Eternal ID of this version: #1004288/1
Text MD5: ad053dbe86e84bc0d955bc919a3f0d5c
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-12 19:02:29
Source code size: 350 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 483 / 462
Referenced in: [show references]