static Map<S, Pair<S, SS>> mechHashMap_cache = synchroMap(); static SS mechHashMap(S listName) { Pair<S, SS> p = mechHashMap_cache.get(listName); S text = mechList_raw(listName); if (p != null && eq(p.a, text)) ret p.b; S parsing = first(mechList_opt(listName + " | Parsing")); p = pair(text, (SS) (parsing != null ? asHashMap((SS) callAndMake(parsing, text)) : parseDoubleArrowMap(new HashMap, tlft(text)))); mechHashMap_cache.put(listName, p); ret p.b; }
Began life as a copy of #1014197
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: | #1015750 |
Snippet name: | mechHashMap - mech map as normal HashMap |
Eternal ID of this version: | #1015750/6 |
Text MD5: | faf81b090d7605d387e81bbc8523cb63 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-23 17:24:13 |
Source code size: | 491 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 536 / 566 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015758 - mechHashMap_fresh - with reload |