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

16
LINES

< > BotCompany Repo | #1009966 // printWeb

JavaX fragment (include)

static void printWeb(Web web) {
  if (web == null) { print("-"); ret; }
  L<Pair<WebNode>> relations = web_nonEmptyRelations(web);
  print((web.unverified ? "UNVERIFIED " : "VERIFIED ")
    + "Web " + web.globalID
    + " from " + web.source
    + (web.created == 0 ? "" : ", created " + dateGMT(web.created))
    + ": " + n(l(web.nodes)-l(relations), "node") + ", " + n(relations, "relation"));
  print();
  L<WebNode> nodes = web_nonRelationNodes(web);
  if (!(l(nodes) == 2 && l(relations) == 1)) {
    pnlIndent(collectMethod(nodes, 'text));
    print();
  }
  web_printRelations(web);
}

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: #1009966
Snippet name: printWeb
Eternal ID of this version: #1009966/17
Text MD5: 5b734c6478d40fd212cb1bf5d02cac8b
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-26 17:08:00
Source code size: 606 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 499
Version history: 16 change(s)
Referenced in: [show references]