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

12
LINES

< > BotCompany Repo | #1011914 // readWebsLog

JavaX fragment (include)

static L<Web> readWebsLog(File log, S src) {
  IterableIterator<SoftwareMadeWeb> l = scanLog_unstructure_iterator(log);
  new L<Web> webs;
  for (SoftwareMadeWeb o : l) pcall {
    Web web = o.web;
    if (web == null)
      web = (Web) unstructure(o.structure);
    if (web != null)
      webs.add(web_intern(web_setSourceIfEmpty(web, src)));
  }
  ret webs;
}

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