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)

// returns count of webs actually posted
static int postSoftwareMadeWebs(Collection<Web> webs) {
  int count = 0;
  Set<S> md5s = mapToHashSet(f web_contentsMD5, websMadeByThisProgram());
  for (Web web : webs)
    if (!md5s.contains(web_contentsMD5(web))) {
      postSoftwareMadeWeb(web);
      ++count;
    }
  markWebsPosted();
  ret count;
}

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: 441 / 439
Version history: 2 change(s)
Referenced in: [show references]