Libraryless. Click here for Pure Java version (10635L/76K).
1 | svoid dm_onUserUtterance(IVF1<S> f) { |
2 | DynModule mod = dm_current_mandatory(); |
3 | dm_ownResource(onUserUtterance(voidfunc(S s) { |
4 | dm_q(mod, r { callF(f, s) }) |
5 | })); |
6 | } |
7 | |
8 | svoid dm_onUserUtterance(S text, Runnable r) { |
9 | DynModule mod = dm_current_mandatory(); |
10 | dm_ownResource(onUserUtterance(voidfunc(S s) { |
11 | if (!match(text, s)) ret; |
12 | dm_q(mod, r); |
13 | })); |
14 | } |
Began life as a copy of #1015151
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025594 |
Snippet name: | dm_onUserUtterance - executes in module queue |
Eternal ID of this version: | #1025594/4 |
Text MD5: | 333295ee0a5f760eb2b91d153e38e936 |
Transpilation MD5: | bdbe2c16c811c76a69b5048216ec7fd4 |
Author: | stefan |
Category: | javax / speech |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-16 14:02:22 |
Source code size: | 379 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 286 / 399 |
Version history: | 3 change(s) |
Referenced in: | [show references] |