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

12
LINES

< > BotCompany Repo | #1011497 // ai_dropDroppableTail - only does one step

JavaX fragment (include)

1  
static S ai_dropDroppableTail(S s) {
2  
  for (WebNode node : ai_search_dollarX_verified("$X", "is", "a droppable tail")) {
3  
    if (isQuoted(web_text(node))) {
4  
      S tail = web_unquote(node);
5  
      if (nempty(tail) && ewic(s, tail)) {
6  
        print("Dropping tail: " + quote(tail));
7  
        ret dropSuffixTrimIC(tail, s);
8  
      }
9  
    }
10  
  }
11  
  ret s;
12  
}

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: #1011497
Snippet name: ai_dropDroppableTail - only does one step
Eternal ID of this version: #1011497/3
Text MD5: 27a992d667c65c02ed6d74d2f5471908
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-12 10:09:28
Source code size: 360 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 471 / 432
Version history: 2 change(s)
Referenced in: [show references]