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

17
LINES

< > BotCompany Repo | #1004288 // gMatch

JavaX fragment (include)

static IterableIterator<Matches> gMatch(final S pat) {
  final L<S> log = gLog();
  
  ret new IterableIterator<Matches>() {
    int i = l(log);
    new Matches m;
    
    public bool hasNext() {
      while (--i >= 0 && !match(pat, get(log, i), m));
      ret i >= 0;
    }
    
    public Matches next() {
      ret m;
    }
  };
}

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: 479 / 458
Referenced in: [show references]