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

14
LINES

< > BotCompany Repo | #1014649 // Suggester Module 1

JavaX module [tags: use-pretranspiled]

Download Jar. Libraryless. Click here for Pure Java version (7253L/49K/175K).

!7

static L<Pair<S, Runnable>> lastList;

// text + action
static L<Pair<S, Runnable>> suggest() {
  L<Pair<S, Runnable>> l = new L; // Need Runnables because we export
  
  addPair(l, "Run VisualKatze", r { startVisualKatze() });
  
  // Return list unless same as last time
  if (eq(firstOfPairs(lastList), firstOfPairs(l))) null;
  ret lastList = l;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014649
Snippet name: Suggester Module 1
Eternal ID of this version: #1014649/11
Text MD5: ffcd34362a53ced4220bfdd087497d8e
Transpilation MD5: 251c13ed4326b66632e922efd9c77248
Author: stefan
Category: javax / a.i. / gui
Type: JavaX module
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-27 17:19:37
Source code size: 368 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 434 / 1142
Version history: 10 change(s)
Referenced in: [show references]