1 | sbool subListEqualsIC(LS l, LS pat, int i) {
|
2 | if (i < 0) false; |
3 | int j = i+l(pat); |
4 | if (j > l(l)) false; |
5 | for (int k = i; k < j; k++) |
6 | if (neqic(l.get(k), pat.get(k-i))) |
7 | false; |
8 | true; |
9 | } |
Began life as a copy of #1020304
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022225 |
| Snippet name: | subListEqualsIC |
| Eternal ID of this version: | #1022225/3 |
| Text MD5: | a4e7e054f5156c1ee0df9ad6dd1f24ec |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-11 13:33:40 |
| Source code size: | 207 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 556 / 572 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |