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

8
LINES

< > BotCompany Repo | #1015387 // class DeQ (runnable queue with ability to insert tasks at the front)

JavaX fragment (include)

sclass DeQ extends Q {
  *() { q = new LinkedList; }
  
  void addFirst(O r) {
    ((Deque) q).addFirst(toRunnable(r));
    _trigger();
  }
}

Author comment

Began life as a copy of #1000934

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015387
Snippet name: class DeQ (runnable queue with ability to insert tasks at the front)
Eternal ID of this version: #1015387/4
Text MD5: da7ce016e1f42c3a1fa42d28f018e455
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-27 00:25:50
Source code size: 148 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 340 / 912
Version history: 3 change(s)
Referenced in: [show references]