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

16
LINES

< > BotCompany Repo | #1009978 // web_mergeWebs

JavaX fragment (include)

1  
static Web web_mergeWebs(Web web1, Web web2) {
2  
  Web web = web_cloneWeb(web1);
3  
  web_addWebToWeb(web2, web);
4  
  web_mergeNodesByFirstLabel(web);
5  
  ret web;
6  
}
7  
8  
static Web web_mergeWebs(Collection<Web> webs) {
9  
  if (empty(webs)) null;
10  
  Iterator<Web> i = webs.iterator();
11  
  Web web = web_cloneWeb(i.next());
12  
  while (i.hasNext())
13  
    web_addWebToWeb(i.next(), web);
14  
  web_mergeNodesByFirstLabel(web);
15  
  ret web;
16  
}

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: #1009978
Snippet name: web_mergeWebs
Eternal ID of this version: #1009978/3
Text MD5: e3451c1e863fcb4a2bcb237413d19dc5
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-01 23:47:10
Source code size: 425 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 412 / 459
Version history: 2 change(s)
Referenced in: [show references]