1 | static LL<S> ai_splitAroundCommonPhrases(S s) { |
2 | LS tok = javaTokWithBrackets(s); |
3 | new LL<S> out; |
4 | for (S phrase : mL("Words to split at")) |
5 | if (cic(s, phrase)) |
6 | addUnlessNull(out, ai_splitAroundPhrase_orNull(tok, phrase)); |
7 | ret out; |
8 | } |
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: | 260 / 296 |
Version history: | 3 change(s) |
Referenced in: | [show references] |