1 | // name -> (name, parsed map) |
2 | static Map<S, Pair<S, MultiMap<S>>> mechReversedMultiMapCI_cache = synchroMap(); |
3 | |
4 | static MultiMap<S> mechReversedMultiMapCI(S listName) { |
5 | Pair<S, MultiMap<S>> p = mechReversedMultiMapCI_cache.get(listName); |
6 | S text = mechList_opt_raw(listName); |
7 | if (p != null && eq(p.a, text)) ret p.b; |
8 | MultiMap<S> map = reverseMultiMapCI(parseDoubleArrowMultiMap(new MultiMap, tlft(text))); |
9 | p = pair(text, map); |
10 | mechReversedMultiMapCI_cache.put(listName, p); |
11 | ret p.b; |
12 | } |
Began life as a copy of #1016354
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: | #1016376 |
Snippet name: | mechReversedMultiMapCI - mech list as reversed case-insensitive multimap |
Eternal ID of this version: | #1016376/4 |
Text MD5: | c87ae35aeea5b473dc48d83a79e473ad |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-16 17:23:01 |
Source code size: | 507 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 409 |
Version history: | 3 change(s) |
Referenced in: | [show references] |