Uses 1113K of libraries. Click here for Pure Java version (7182L/38K).
1 | !7 |
2 | |
3 | cm > DynTestModule {
|
4 | void test {
|
5 | LS list = ll("a", "b", "a", "b");
|
6 | LS sublist = list.subList(2, 4); |
7 | |
8 | // Note that we couldn't find this out without the magic trick |
9 | // (comparison by elements would yield 0 instead of 2). |
10 | assertEqualsVerbose("Index", 2, magicIndexOfSubList(list, sublist));
|
11 | } |
12 | } |
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
| ID | Author/Program | Comment | Date |
|---|---|---|---|
| 1179 | stefan | Works! | 2015-11-21 19:00:28 |
| 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: | 1203 / 1291 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |