1 | // TODO: WeakAssoc from loadTruth_cached() |
2 | static Cache<Set<S>> trueStatements_cached_cache = new Cache(func { collectTreeSet(loadTruth_cached(), "text") }); |
3 | |
4 | static Set<S> trueStatements_cached() { |
5 | ret trueStatements_cached_cache!; |
6 | } |
7 | |
8 | static void trueStatements_clearCache() { |
9 | trueStatements_cached_cache.clear(); |
10 | } |
11 | |
12 | // clear cache if older than x seconds |
13 | static void trueStatements_clearCache(double seconds) { |
14 | trueStatements_cached_cache.clear(seconds); |
15 | } |
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: | #1007422 |
Snippet name: | trueStatements_cached - get statements from Truth Table as L<S> (cached) |
Eternal ID of this version: | #1007422/10 |
Text MD5: | a9a1e2e1da3138048dfd2795dc19c8a9 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-03 06:58:49 |
Source code size: | 478 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 524 / 548 |
Version history: | 9 change(s) |
Referenced in: | [show references] |