Libraryless. Click here for Pure Java version (2983L/18K).
1 | static int indexOfMatches(S pat, L<S> l, Matches m default null) { |
2 | ret indexOfMatches(pat, l, 0, m); |
3 | } |
4 | |
5 | static int indexOfMatches(S pat, L<S> l, int i, Matches m default null) { |
6 | for (int n = l(l); i < n; i++) |
7 | if (match(pat, l.get(i), m)) |
8 | ret i; |
9 | ret -1; |
10 | } |
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: | 173 / 258 |
Version history: | 5 change(s) |
Referenced in: | [show references] |