// TODO: WeakAssoc from loadTruth_cached() static Cache<Set<S>> trueStatements_cached_cache = new Cache(func { collectTreeSet(loadTruth_cached(), "text") }); static Set<S> trueStatements_cached() { ret trueStatements_cached_cache!; } static void trueStatements_clearCache() { trueStatements_cached_cache.clear(); } // clear cache if older than x seconds static void trueStatements_clearCache(double seconds) { trueStatements_cached_cache.clear(seconds); }
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: | 523 / 547 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1007525 - loadTruth_cached - get statements from Truth Table as L<Statement> (cached) |