1 | static <A> L<Int> indicesOfSubList(L<A> x, L<A> y) {
|
2 | new L<Int> l; |
3 | int i = 0; |
4 | while true {
|
5 | int j = indexOfSubList(x, y, i); |
6 | if (j < 0) break; |
7 | l.add(j); |
8 | i = j+1; |
9 | } |
10 | ret l; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017533 |
| Snippet name: | indicesOfSubList |
| Eternal ID of this version: | #1017533/1 |
| Text MD5: | 1dc414b636b3a5ee0c52d5cdb2317c62 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-26 13:20:17 |
| Source code size: | 207 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 550 / 618 |
| Referenced in: | [show references] |