Libraryless. Click here for Pure Java version (5358L/37K).
1 | svoid ele_logUserFeedback(bool plus, O... _) {
|
2 | File f = plus ? ele_userPlusLog() : ele_userMinusLog(); |
3 | Map map = litorderedmap(paramsPlus(_, computerID := computerID())); |
4 | logStructureWithDate(f, map); |
5 | S item = str(firstValue(map)); |
6 | infoBox("Saved feedback " + (plus ? "+" : "-") + " on " + quote(item));
|
7 | if (plus) |
8 | ele_addToListOfEverything(item); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026669 |
| Snippet name: | ele_logUserFeedback - first map value is also added to LOE (when feedback is positive) |
| Eternal ID of this version: | #1026669/6 |
| Text MD5: | 8d65c47862762cd66702bc2f78f5557d |
| Transpilation MD5: | 210a853d687f25e9edf8ee6944d88feb |
| Author: | stefan |
| Category: | javax / ele |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-18 22:11:40 |
| Source code size: | 372 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 453 / 603 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |