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

11
LINES

< > BotCompany Repo | #1023791 // SimplyLinkedList - could merge with MinimalChain

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (36L) is out of date.

1  
sclass SimplyLinkedList<A> {
2  
  A head;
3  
  SimplyLinkedList<A> tail;
4  
  
5  
  static <B> SimplyLinkedList<B> cons(B head, SimplyLinkedList tail) {
6  
    new SimplyLinkedList<B> l;
7  
    l.head = head;
8  
    l.tail = tail;
9  
    ret l;
10  
  }
11  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023791
Snippet name: SimplyLinkedList - could merge with MinimalChain
Eternal ID of this version: #1023791/3
Text MD5: dda43edc6ed71885a0d9414bd962eea1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-08 16:02:02
Source code size: 236 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 610
Version history: 2 change(s)
Referenced in: [show references]