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)

1  
sclass DeQ extends Q {
2  
  *() { q = new LinkedList; }
3  
  
4  
  void addFirst(O r) {
5  
    ((Deque) q).addFirst(toRunnable(r));
6  
    _trigger();
7  
  }
8  
}

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: 406 / 991
Version history: 3 change(s)
Referenced in: [show references]