Download Jar. Libraryless. Click here for Pure Java version (7787L/55K).
1 | !7 |
2 | |
3 | p-exp { |
4 | S input = "hey, bot, what time is it yo bot please?"; |
5 | |
6 | |
7 | final Set<S> set = mechSetCI("Appellations"); |
8 | |
9 | L<S> tok = javaTokNPunctuation(input); |
10 | pnl(notNulls_iterator( |
11 | mapIterator(allTokSplits_nOnRight_iterator(tok), |
12 | func(Pair<LS> p) -> S { |
13 | if (set.contains(print(trimJoin(simpleSpaces(p.b))))) |
14 | ret join(p.a); |
15 | null; |
16 | }))); |
17 | } |
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: | 445 / 1020 |
Version history: | 9 change(s) |
Referenced in: | [show references] |