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

12
LINES

< > BotCompany Repo | #1018098 // Drop Leading Appellations Spike 2 [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (7545L/54K).

!7

p-exp {
  S input = "hey, bot, what time is it yo?";
  
  Map<S, O> wordTree = listToWordTree(mL("Appellations"));
  
  L<S> tok = javaTokNPunctuation(input);
  L<Int> indices = aOfPairs(matchStartUsingWordTree_all(tok, wordTree));
  for (int i : indices)
    print(joinSubList(tok, i));
}

Author comment

Began life as a copy of #1018096

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: #1018098
Snippet name: Drop Leading Appellations Spike 2 [OK]
Eternal ID of this version: #1018098/3
Text MD5: 8f44911b7978ab3bd2bee550196ad194
Transpilation MD5: a0734d2bf060c9b501214727fc3e74e5
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 12:57:43
Source code size: 304 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 304 / 709
Version history: 2 change(s)
Referenced in: [show references]