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

10
LINES

< > BotCompany Repo | #1010864 // web_modifyTexts

JavaX fragment (include)

1  
// f : S -> S
2  
static void web_modifyTexts(WebNode node, O f) {
3  
  L<Lisp> labels = node.labels();
4  
  for (int i = 0; i < l(node.labels); i++) {
5  
    S s = node.web.unparseLabel(labels.get(i));
6  
    S s2 = (S) callF(f, s);
7  
    if (neq(s, s2))
8  
      node.setLabel(i, node.web.parseLabel(s2));
9  
  }
10  
}

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: #1010864
Snippet name: web_modifyTexts
Eternal ID of this version: #1010864/3
Text MD5: 8061734f43039ce731a40dcf2ea69bb0
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-02 03:26:52
Source code size: 301 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 423 / 441
Version history: 2 change(s)
Referenced in: [show references]