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

17
LINES

< > BotCompany Repo | #1004289 // gJMatch

JavaX fragment (include)

static IterableIterator<Matches> gJMatch(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 && !jmatch(pat, get(log, i), m));
      ret i >= 0;
    }
    
    public Matches next() {
      ret m;
    }
  };
}

Author comment

Began life as a copy of #1004288

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: #1004289
Snippet name: gJMatch
Eternal ID of this version: #1004289/1
Text MD5: 229ad8948badc8700d43fb24ca9e187a
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:58
Source code size: 352 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 534 / 540
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)