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

7
LINES

< > BotCompany Repo | #1012647 // combineLists - make CombinedList

JavaX fragment (include)

1  
static <A> L<A> combineLists(L<A> a, L<A> b) {
2  
  if (empty(a)) ret b;
3  
  if (empty(b)) ret a;
4  
  if (!a instanceof CombinedList) a = combinedList_ll(a);
5  
  a/CombinedList.addList(b);
6  
  ret a;
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012647
Snippet name: combineLists - make CombinedList
Eternal ID of this version: #1012647/1
Text MD5: ed60a2e218132e5970da156d306995af
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-09 23:45:36
Source code size: 196 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 437 / 503
Referenced in: [show references]