1 | static Map<S, Pair<S, SS>> mechHashMap_cache = synchroMap(); |
2 | |
3 | static SS mechHashMap(S listName) { |
4 | Pair<S, SS> p = mechHashMap_cache.get(listName); |
5 | S text = mechList_raw(listName); |
6 | if (p != null && eq(p.a, text)) ret p.b; |
7 | S parsing = first(mechList_opt(listName + " | Parsing")); |
8 | p = pair(text, (SS) (parsing != null |
9 | ? asHashMap((SS) callAndMake(parsing, text)) |
10 | : parseDoubleArrowMap(new HashMap, tlft(text)))); |
11 | mechHashMap_cache.put(listName, p); |
12 | ret p.b; |
13 | } |
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: | 537 / 568 |
Version history: | 5 change(s) |
Referenced in: | [show references] |