1 | static L<S> ai_splitCompoundWord1(S s) { |
2 | for (int i = 1; i < l(s)-1; i++) { |
3 | S a = substring(s, 0, i), b; |
4 | if (ai_isWord(a) && ai_isWord(b = substring(s, i))) |
5 | ret ll(a, b); |
6 | } |
7 | null; |
8 | } |
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: | #1012627 |
Snippet name: | ai_splitCompoundWord1 |
Eternal ID of this version: | #1012627/1 |
Text MD5: | d30507d509a6fdeebb22bb578b16c0d7 |
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:21:48 |
Source code size: | 207 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 408 / 446 |
Referenced in: | [show references] |