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

10
LINES

< > BotCompany Repo | #1030490 // indexOfMatches - index of first entry that match3()s a pattern

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2983L/18K).

static int indexOfMatches(S pat, L<S> l, Matches m default null) {
  ret indexOfMatches(pat, l, 0, m);
}

static int indexOfMatches(S pat, L<S> l, int i, Matches m default null) {
  for (int n = l(l); i < n; i++)
    if (match(pat, l.get(i), m))
      ret i;
  ret -1;
}

Author comment

Began life as a copy of #1006686

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030490
Snippet name: indexOfMatches - index of first entry that match3()s a pattern
Eternal ID of this version: #1030490/6
Text MD5: 0b852fa53845bb874f220dd49190cd38
Transpilation MD5: 8456e16562733acd889c834e8fe28183
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-28 00:11:41
Source code size: 279 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 172 / 257
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)