Libraryless. Click here for Pure Java version (1056L/7K/25K).
!752 p { ImmL<S> a = new ImmL(ll("hello", "world")); ImmL<S> b = new ImmL(ll("hello", "world")); ImmL<S> c = new ImmL(ll("world", "hello")); print("md5/hash: " + a.md5() + "/" + a.hashCode()); print("md5/hash: " + b.md5() + "/" + b.hashCode()); print("md5/hash: " + c.md5() + "/" + c.hashCode()); assertEquals(a, b); assertFalse(eq(a, c)); assertTrue(a.hashCode() == b.hashCode()); assertFalse(a.hashCode() == c.hashCode()); assertEquals("hello", a.get(0)); assertEquals(2, l(a)); print("ok"); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004214 |
Snippet name: | Test ImmL (immutable list) |
Eternal ID of this version: | #1004214/1 |
Text MD5: | 65951fa91e58203a54212a2db4e6445c |
Transpilation MD5: | dd617b107b8b0d64f49ae98aad29f111 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-10 17:00:04 |
Source code size: | 538 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 582 |
Referenced in: | [show references] |