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

8
LINES

< > BotCompany Repo | #1023794 // fromSimplyLinkedList

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

Libraryless. Click here for Pure Java version (45L/1K).

static <A> L<A> fromSimplyLinkedList(SimplyLinkedList<A> sll) {
  new L<A> l;
  while (sll != null) {
    l.add(sll.head);
    sll = sll.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: #1023794
Snippet name: fromSimplyLinkedList
Eternal ID of this version: #1023794/1
Text MD5: e4215bd8320959a0e043872f87915baf
Transpilation MD5: 5e153338853dfacc294dc5e61635e974
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-09 03:25:08
Source code size: 164 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 193 / 273
Referenced in: [show references]