Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

35
LINES

< > BotCompany Repo | #1022559 // Single-Word Mech Lists Index (only lists with a single word on each line)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (7317L/37K).

!7

cmodule SingleWordMechListsIndex > DynPrintLog {
  transient volatile MultiMap<S> index;
  transient volatile bool couldNotLoad;
  
  start {
    thread {
      try {
        dm_useLocalMechListCopies();
        LS lists = mechListsWithSingleWords();
        index = indexMechLists(lists);
        print("Indexed " + n2(lists, "list") + ". " + n2(l(index), "entry", "entries"));
        dm_registerAs('aMechListIndex);
      } on fail {
        set couldNotLoad;
      }
    }
  }
  
  // API
  
  Map<S, LS> getIndex() {
    do {
      if (couldNotLoad) null;
      if (index != null) ret index.data;
      sleep(100);
    } while (licensed());
    null;
  }
  
  LS mechListsForEntry(S s) {
    ret mapGet(getIndex(), s);
  }
}

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: 179 / 1646
Version history: 10 change(s)
Referenced in: [show references]