Download Jar. Libraryless. Click here for Pure Java version (7567L/54K).
!7 p-exp { S input = "hey, bot, what time is it yo bot?"; Map<S, O> wordTree = listToReversedWordTree(mL("Appellations")); L<S> tok = javaTokNPunctuation(input); L<Int> indices = aOfPairs(matchEndUsingWordTree_all(tok, wordTree)); for (int i : indices) print(joinSubList(tok, 0, i)); }
Began life as a copy of #1018098
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018101 |
Snippet name: | Drop Trailing Appellations Spike [dev.] |
Eternal ID of this version: | #1018101/1 |
Text MD5: | ffbf0e72707a733bb33f667c54ef66e0 |
Transpilation MD5: | 1497fa326e57c6fd7d1f2884a0fee788 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-02 13:05:05 |
Source code size: | 317 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 401 / 981 |
Referenced in: | [show references] |