1 | scope ai_mechPatternListNamesForAngleBracketCategory. |
2 | |
3 | static TimedCache<Map<S, Set<S>>> #cache = TimedCache(5.0); |
4 | |
5 | static Set<S> ai_mechPatternListNamesForAngleBracketCategory(S s) { |
6 | Map<S, Set<S>> map = cache.get(f newHashMap); |
7 | s = dropTrailingNumberFromAngleBracketCategory(s); |
8 | if (map.containsKey(s)) ret map.get(s); |
9 | // Derive from the category name |
10 | Set<S> set = litCISet(replace(deAngleBracket(s), "_", " ") + " patterns"); |
11 | set.addAll(mechMultiMapCI("Word category => Pattern List").get(s)); |
12 | map.put(s, set); |
13 | ret set; |
14 | } |
15 | |
16 | end scope |
Began life as a copy of #1017299
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017316 |
Snippet name: | ai_mechPatternListNamesForAngleBracketCategory |
Eternal ID of this version: | #1017316/3 |
Text MD5: | 4a132e3757fef4acde1960c9a686021a |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 16:57:26 |
Source code size: | 566 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 430 |
Version history: | 2 change(s) |
Referenced in: | [show references] |