Libraryless. Click here for Pure Java version (14596L/101K).
!7 module DefinitionsPerWord > DynTextArea { transient S input; start { dm_onTopInputChangeAndNow_q(voidfunc(S s) { input = s; update(); }); doEvery(10.0, r updateMe); } void update { Map<S, LS> map = dm_getDefinitionsMap(); new LS out; out.add(input + "\n"); for (S word : words(input)) { LS defs = map.get(word); if (empty(defs)) defs = ll("?"); for (S d : defs) out.add(word + " = " + d); } setText(lines(out)); } }
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020016 |
| Snippet name: | Show Definitions Per Word In Input [OK] |
| Eternal ID of this version: | #1020016/5 |
| Text MD5: | d46aa7c1b1c091fda1736ac48c5c7aa4 |
| Transpilation MD5: | 6fda880ad66b24058604b751fe3ae53f |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-04 16:46:37 |
| Source code size: | 534 bytes / 26 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 548 / 1121 |
| Version history: | 4 change(s) |
| Referenced in: | #1020035 - Think About Input Using Definitions [dev.] |