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)

static L<Matches> matchAll(S pat, Iterable<S> l) {
  new L<Matches> l2;
  new Matches m;
  if (l != null) for (S s : l)
    if (match(pat, s, m)) {
      l2.add(m);
      m = new Matches;
    }
  ret l2;
}

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: 535 / 526
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018208 - matchAll_first - matchAll, get first match in each line