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

18
LINES

< > BotCompany Repo | #1026353 // ELE: Find Past Input identical to current input [OK]

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

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

!7

sclass Entry {
  S time, text;
}
  
cmodule ELEFindPastInput > DynObjectTable<Entry> {
  start { doEvery(1.0, r grab); }
  
  void grab enter {
    if (!ele_on()) ret;
    S input = ele_currentInput();
    if (empty(input)) ret with clear();
    
    Cl<virtual Entry> l = ele_pastInputs();
    setData(quickImport(filter(l, e -> eqic(getString text(e), input))));
  }
}

Author comment

Began life as a copy of #1026333

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: #1026353
Snippet name: ELE: Find Past Input identical to current input [OK]
Eternal ID of this version: #1026353/7
Text MD5: f15fe7a4e60fae6260e7a7bf205a320d
Transpilation MD5: 14c3453da10e16b10422f9fa9f69b111
Author: stefan
Category: javax / electric logic engine
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-25 15:54:53
Source code size: 391 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 222 / 877
Version history: 6 change(s)
Referenced in: #1026354 - ELE: Current Input
#1026359 - ELE: Match Patterns [to current input]
#1026371 - ELE: Theories [dev.]
#1026505 - ELE: Match current to past Input word-by-word [dev.]