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

12
LINES

< > BotCompany Repo | #1011180 // postSoftwareMadeWebs - checks if webs exist

JavaX fragment (include)

1  
// returns count of webs actually posted
2  
static int postSoftwareMadeWebs(Collection<Web> webs) {
3  
  int count = 0;
4  
  Set<S> md5s = mapToHashSet(f web_contentsMD5, websMadeByThisProgram());
5  
  for (Web web : webs)
6  
    if (!md5s.contains(web_contentsMD5(web))) {
7  
      postSoftwareMadeWeb(web);
8  
      ++count;
9  
    }
10  
  markWebsPosted();
11  
  ret count;
12  
}

Author comment

Began life as a copy of #1010675

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: #1011180
Snippet name: postSoftwareMadeWebs - checks if webs exist
Eternal ID of this version: #1011180/3
Text MD5: e2d316bf6f85554e0249a42b980897d9
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-16 21:58:27
Source code size: 357 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 448 / 444
Version history: 2 change(s)
Referenced in: [show references]