Uses 1113K of libraries. Click here for Pure Java version (7182L/38K).
!7 cm > DynTestModule { void test { LS list = ll("a", "b", "a", "b"); LS sublist = list.subList(2, 4); // Note that we couldn't find this out without the magic trick // (comparison by elements would yield 0 instead of 2). assertEqualsVerbose("Index", 2, magicIndexOfSubList(list, sublist)); } }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
1 comment(s) hidden. show
| Snippet ID: | #1001831 |
| Snippet name: | Test magicIndexOfSubList without OurSubLists (OK but deprecated) |
| Eternal ID of this version: | #1001831/7 |
| Text MD5: | c5935c882d9dc774f057c055ee3a443d |
| Transpilation MD5: | 03199bf081c4bbf24114228e922c4f0e |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-07-24 02:38:52 |
| Source code size: | 335 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1204 / 1291 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |