Libraryless. Click here for Pure Java version (399L/3K/12K).
!7 p { ArrayList a = smallEmptyList(), b = litlist(), c = new ArrayList; for i to 20: { print(arrayListCapacity(a) + " vs " + arrayListCapacity(b) + " vs " + arrayListCapacity(c)); a.add(0); b.add(0); c.add(0); } }
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: | 577 / 635 |
Version history: | 1 change(s) |
Referenced in: | [show references] |