Uses 911K of libraries. Click here for Pure Java version (7317L/37K).
1 | !7 |
2 | |
3 | cmodule SingleWordMechListsIndex > DynPrintLog { |
4 | transient volatile MultiMap<S> index; |
5 | transient volatile bool couldNotLoad; |
6 | |
7 | start { |
8 | thread { |
9 | try { |
10 | dm_useLocalMechListCopies(); |
11 | LS lists = mechListsWithSingleWords(); |
12 | index = indexMechLists(lists); |
13 | print("Indexed " + n2(lists, "list") + ". " + n2(l(index), "entry", "entries")); |
14 | dm_registerAs('aMechListIndex); |
15 | } on fail { |
16 | set couldNotLoad; |
17 | } |
18 | } |
19 | } |
20 | |
21 | // API |
22 | |
23 | Map<S, LS> getIndex() { |
24 | do { |
25 | if (couldNotLoad) null; |
26 | if (index != null) ret index.data; |
27 | sleep(100); |
28 | } while (licensed()); |
29 | null; |
30 | } |
31 | |
32 | LS mechListsForEntry(S s) { |
33 | ret mapGet(getIndex(), s); |
34 | } |
35 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022559 |
Snippet name: | Single-Word Mech Lists Index (only lists with a single word on each line) |
Eternal ID of this version: | #1022559/11 |
Text MD5: | 6017aebba5675938e116fdb8a8b979c8 |
Transpilation MD5: | 755897b34b3701e854df8b1355c9d7bd |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-08 00:01:41 |
Source code size: | 767 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 340 / 1845 |
Version history: | 10 change(s) |
Referenced in: | [show references] |