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

14
LINES

< > BotCompany Repo | #1010213 // web_addWebs - no merging

JavaX fragment (include)

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

Author comment

Began life as a copy of #1009978

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: #1010213
Snippet name: web_addWebs - no merging
Eternal ID of this version: #1010213/1
Text MD5: d5573a28a1ba6c875a90d20b240fa575
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-06 20:19:16
Source code size: 349 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 485 / 500
Referenced in: [show references]