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

22
LINES

< > BotCompany Repo | #1021094 // Question To Module [CRUD]

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

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

!7

concept Entry {
  S question; // match3 pattern
  S moduleID; // snippet ID
}

cmodule Question2Module > DynCRUD<Entry> {
  start {
    dbIndexing(Entry, 'question);
    loadMechLists();
  }
  
  void loadMechLists() {
    dm_useLocalMechListCopies();
    for (S listName : mechListNamesStartingWith("Questions leading to module ")) {
      S moduleID = firstSnippetID(listName);
      for (S question : mL(listName))
        uniq_sync(Entry, +question, +moduleID);
    }
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1021094
Snippet name: Question To Module [CRUD]
Eternal ID of this version: #1021094/3
Text MD5: b633a84521aeba6a030d69869f859a48
Transpilation MD5: 2571f975780f905744c845be35500a8d
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-22 15:18:38
Source code size: 502 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 338 / 393
Version history: 2 change(s)
Referenced in: