Download Jar. Libraryless. Click here for Pure Java version (843L/6K).
1 | !7 |
2 | |
3 | p { |
4 | LinkedHashMap<S, Long> map = expiringHelperMap(10*1000, voidfunc(S s) { |
5 | print("Removing: " + s); |
6 | }); |
7 | |
8 | repeat with sleep 1 { |
9 | map.put(str(sysNow()), now()); |
10 | } |
11 | } |
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: | #1010799 |
Snippet name: | Test expiringHelperMap [OK] |
Eternal ID of this version: | #1010799/2 |
Text MD5: | 4720aad056d76e8bd2193cea011ebd04 |
Transpilation MD5: | e0309118125891b7e461fc328fdba467 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-03 19:00:28 |
Source code size: | 190 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 473 / 1039 |
Version history: | 1 change(s) |
Referenced in: | [show references] |