static <A> int smartIndexOfLL(L<A> x, int i, A... y) { outer: for (; i+l(y) <= l(x); i++) { for (int j = 0; j < l(y); j++) if (neq(x.get(i+j), y[j])) continue outer; ret i; } ret l(x); }
Began life as a copy of #1012395
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013104 | 
| Snippet name: | smartIndexOfLL | 
| Eternal ID of this version: | #1013104/1 | 
| Text MD5: | 1100fa0c9d2ed1c9842e5281e7789b2a | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-12-25 21:33:15 | 
| Source code size: | 222 bytes / 9 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 518 / 589 | 
| Referenced in: | [show references] |