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

8
LINES

< > BotCompany Repo | #1021987 // ai_splitAroundCommonPhrases - drops the phrase itself

JavaX fragment (include)

static LL<S> ai_splitAroundCommonPhrases(S s) {
  LS tok = javaTokWithBrackets(s);
  new LL<S> out;
  for (S phrase : mL("Words to split at"))
    if (cic(s, phrase))
      addUnlessNull(out, ai_splitAroundPhrase_orNull(tok, phrase));
  ret out;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1021987
Snippet name: ai_splitAroundCommonPhrases - drops the phrase itself
Eternal ID of this version: #1021987/4
Text MD5: 8965e7cf6550772d6b4b01e3e86b4480
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-04 17:36:05
Source code size: 254 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 178 / 216
Version history: 3 change(s)
Referenced in: [show references]