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.

sclass SimplyLinkedList<A> {
  A head;
  SimplyLinkedList<A> tail;
  
  static <B> SimplyLinkedList<B> cons(B head, SimplyLinkedList tail) {
    new SimplyLinkedList<B> l;
    l.head = head;
    l.tail = tail;
    ret l;
  }
}

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: 261 / 696
Version history: 2 change(s)
Referenced in: [show references]