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

10
LINES

< > BotCompany Repo | #1010584 - web_texts - get all texts of a single node or first text of a list of nodes

JavaX fragment (include)

static L<S> web_texts(WebNode node) {
  ret node == null ? new L : node.texts();
}

static L<S> web_texts(Collection<? extends WebNode> l) {
  L<S> texts = new L(l(l));
  if (l != null) for (WebNode n : l)
    texts.add(web_text(n));
  ret texts;
}

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1010584
Snippet name: web_texts - get all texts of a single node or first text of a list of nodes
Eternal ID of this version: #1010584/7
Text MD5: 16a9f3d1c1fdf5340af7f58b655bf2d2
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-23 19:42:43
Source code size: 257 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 351 / 351
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1010584 & http://1010584.tinybrain.de