1 | static LL<S> ai_splitCompoundWord2(S s) { |
2 | new LL<S> out; |
3 | for (int i = 1; i < l(s)-1; i++) { |
4 | S a = substring(s, 0, i), b; |
5 | if (ai_isWord(a) && ai_isWord(b = substring(s, i))) |
6 | out.add(ll(a, b)); |
7 | } |
8 | ret out; |
9 | } |
Began life as a copy of #1012627
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: | #1012629 |
Snippet name: | ai_splitCompoundWord2 |
Eternal ID of this version: | #1012629/1 |
Text MD5: | eaf21209ac9139493e59346b53dff38d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-08 17:31:57 |
Source code size: | 234 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 395 / 447 |
Referenced in: | [show references] |