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

10
LINES

< > BotCompany Repo | #1004401 // matchAll - match in a list [todo: there was an older function with this name]

JavaX fragment (include)

1  
static L<Matches> matchAll(S pat, Iterable<S> l) {
2  
  new L<Matches> l2;
3  
  new Matches m;
4  
  if (l != null) for (S s : l)
5  
    if (match(pat, s, m)) {
6  
      l2.add(m);
7  
      m = new Matches;
8  
    }
9  
  ret l2;
10  
}

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: #1004401
Snippet name: matchAll - match in a list [todo: there was an older function with this name]
Eternal ID of this version: #1004401/2
Text MD5: 3448349e24bf51b52f449a880548a1c6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-12 11:24:58
Source code size: 214 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 614 / 607
Version history: 1 change(s)
Referenced in: [show references]