Libraryless. Click here for Pure Java version (399L/3K/12K).
1 | !7 |
2 | |
3 | p {
|
4 | ArrayList a = smallEmptyList(), b = litlist(), c = new ArrayList; |
5 | for i to 20: {
|
6 | print(arrayListCapacity(a) + " vs " + arrayListCapacity(b) + " vs " + arrayListCapacity(c)); |
7 | a.add(0); b.add(0); c.add(0); |
8 | } |
9 | } |
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: | #1008626 |
| Snippet name: | Test smallEmptyList vs normal ArrayList |
| Eternal ID of this version: | #1008626/2 |
| Text MD5: | 9f42a120feb7dcdf6b1e81c6b4656d89 |
| Transpilation MD5: | 78645451e9f73c110553b913fdf98ade |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-05-26 02:30:41 |
| Source code size: | 239 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 868 / 966 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |