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)

static S ai_dropDroppableTail(S s) {
  for (WebNode node : ai_search_dollarX_verified("$X", "is", "a droppable tail")) {
    if (isQuoted(web_text(node))) {
      S tail = web_unquote(node);
      if (nempty(tail) && ewic(s, tail)) {
        print("Dropping tail: " + quote(tail));
        ret dropSuffixTrimIC(tail, s);
      }
    }
  }
  ret s;
}

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: 470 / 431
Version history: 2 change(s)
Referenced in: [show references]