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   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 344 / 312
Version history: 1 change(s)
Referenced in: #1006654 #1018208

Formerly at http://tinybrain.de/1004401 & http://1004401.tinybrain.de