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

8
LINES

< > BotCompany Repo | #1010117 // web_addLabelTop - add label to top [or move to top]

JavaX fragment (include)

1  
static void web_addLabelTop(WebNode node, S label) {
2  
  Lisp l = node.web.parseLabel(label);
3  
  int n = l(node.labels);
4  
  if (setAddOrMoveToFront(node.labels, l)) {
5  
    web_index(node);
6  
    node.web.size += l(node.labels)-n;
7  
  }
8  
}

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: #1010117
Snippet name: web_addLabelTop - add label to top [or move to top]
Eternal ID of this version: #1010117/3
Text MD5: 38c3532e92eda2e7763f4623b6cb9281
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-02 16:30:39
Source code size: 235 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 488 / 505
Version history: 2 change(s)
Referenced in: [show references]