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

17
LINES

< > BotCompany Repo | #1018108 // Drop Trailing Appellations Spike 2 [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (7787L/55K).

!7

p-exp {
  S input = "hey, bot, what time is it yo bot please?";
  
  
  final Set<S> set = mechSetCI("Appellations");
  
  L<S> tok = javaTokNPunctuation(input);
  pnl(notNulls_iterator(
    mapIterator(allTokSplits_nOnRight_iterator(tok),
      func(Pair<LS> p) -> S {
        if (set.contains(print(trimJoin(simpleSpaces(p.b)))))
          ret join(p.a);
        null;
      })));
}

Author comment

Began life as a copy of #1018101

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: #1018108
Snippet name: Drop Trailing Appellations Spike 2 [OK]
Eternal ID of this version: #1018108/10
Text MD5: b45c2411d8ce3fe172101ae861e07523
Transpilation MD5: 153bf4ebe71f0ffc09ba912a328edaa5
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 14:33:21
Source code size: 404 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 651
Version history: 9 change(s)
Referenced in: [show references]