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

23
LINES

< > BotCompany Repo | #1026671 // ELE: List Of Everything [CRUD version]

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

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

!7

concept Entry {
  S text;
  int index;
}

cmodule ELEListOfEverything > DynCRUD<Entry> {
  L<Entry> concepts() enter { ret asList(conceptsSortedByField(Entry, 'index)); }
  
  start {
    indexConceptFieldCI(Entry, 'text);
    dm_registerAs eleLOE();
  }
  
  // API
  
  void addToLOE(S s) q {
    S s2 = trim(s);
    if (nempty(s2))
      uniqCI Entry(text := s2);
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026671
Snippet name: ELE: List Of Everything [CRUD version]
Eternal ID of this version: #1026671/13
Text MD5: 52244a8f9fd426c39ccbd7c3918381f0
Transpilation MD5: 0a136f6adaa3cb1a046326aaa5a79fdc
Author: stefan
Category: javax / ele
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-18 22:15:56
Source code size: 398 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 646
Version history: 12 change(s)
Referenced in: [show references]