Libraryless. Click here for Pure Java version (15053L/93K).
1 | // only works within a module |
2 | sclass StandardFunctions is AutoCloseable { |
3 | volatile SS map; |
4 | AutoCloseable updater; |
5 | |
6 | *() { |
7 | updater = dm_onSnippetEdited(voidfunc(S id) { |
8 | if (sameSnippetID(id, #1006654) || sameSnippetID(id, #761)) |
9 | map = null; |
10 | }); |
11 | } |
12 | |
13 | // name to snippetID |
14 | SS getMap() { |
15 | if (map == null) map = stdFunctions_uncached(); |
16 | ret map; |
17 | } |
18 | |
19 | public void close { |
20 | dispose updater; |
21 | } |
22 | } |
Began life as a copy of #1020404
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032676 |
Snippet name: | StandardFunctions |
Eternal ID of this version: | #1032676/1 |
Text MD5: | 5f9b3b9133040f55c3a164f1e5521706 |
Transpilation MD5: | e54867f260e88a2250dce218663a8e1a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-01 18:10:46 |
Source code size: | 462 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 142 / 267 |
Referenced in: | [show references] |