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

8
LINES

< > BotCompany Repo | #1012627 // ai_splitCompoundWord1

JavaX fragment (include)

static L<S> ai_splitCompoundWord1(S s) {
  for (int i = 1; i < l(s)-1; i++) {
    S a = substring(s, 0, i), b;
    if (ai_isWord(a) && ai_isWord(b = substring(s, i)))
      ret ll(a, b);
  }
  null;
}

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: 407 / 445
Referenced in: [show references]