static int ai_splitTwoNounPhrasesByCase(L<S> tok1) { ret ai_splitTwoNounPhrasesByCaseC(codeTokens(tok1))*2; } // tok = code tokens static int ai_splitTwoNounPhrasesByCaseC(L<S> tok) { L<Bool> l = map(f startsWithUpperCase, tok); ret indexOfFirstChange(l); }
Began life as a copy of #1011076
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: | #1012578 | 
| Snippet name: | ai_splitTwoNounPhrasesByCase | 
| Eternal ID of this version: | #1012578/1 | 
| Text MD5: | 4e01db98f6aefb040b46b9291057bb04 | 
| 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-07 14:07:45 | 
| Source code size: | 272 bytes / 9 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 569 / 596 | 
| Referenced in: | [show references] |