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

12
LINES

< > BotCompany Repo | #1011914 // readWebsLog

JavaX fragment (include)

1  
static L<Web> readWebsLog(File log, S src) {
2  
  IterableIterator<SoftwareMadeWeb> l = scanLog_unstructure_iterator(log);
3  
  new L<Web> webs;
4  
  for (SoftwareMadeWeb o : l) pcall {
5  
    Web web = o.web;
6  
    if (web == null)
7  
      web = (Web) unstructure(o.structure);
8  
    if (web != null)
9  
      webs.add(web_intern(web_setSourceIfEmpty(web, src)));
10  
  }
11  
  ret webs;
12  
}

Author comment

Began life as a copy of #1011177

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: #1011914
Snippet name: readWebsLog
Eternal ID of this version: #1011914/3
Text MD5: b12350d2ce3618264d0bc29ca84be2b1
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-10 02:08:20
Source code size: 374 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 404
Version history: 2 change(s)
Referenced in: [show references]