Libraryless. Click here for Pure Java version (3555L/23K).
// list contains strings or pairs (item + reasoning) or WithReasoning // optional parameter: S computerNotes // optional parameter: O info - an object that will be struct()ed and appended to the computerNotes field // This version uses str(makeList) for "code" field sS dm_showListWithFeedback(F0<? extends Cl> makeList, O... _) { S code = str(makeList); optPar S computerNotes; optPar O info; if (info != null) computerNotes = joinNemptiesWithEmptyLines(computerNotes, struct(info)); ret dm_showListWithFeedback(makeList!, paramsPlus_noOverwrite(_, +code, +computerNotes)); } sS dm_showListWithFeedback(S description, Collection list, O... _) { S module = dm_showNewModule("#1026559/ListWithFeedback"); dm_setAll(module, +description, code := optParam code(_), computerNotes := optParam computerNotes(_)); dm_callModule(module, 'importItems, list); ret module; } sS dm_showListWithFeedback(Cl list, O... _) { ret dm_showListWithFeedback(null, list, _); }
Began life as a copy of #1019482
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: | #1026561 |
Snippet name: | dm_showListWithFeedback |
Eternal ID of this version: | #1026561/10 |
Text MD5: | a05c522255842e70239ed945586f732f |
Transpilation MD5: | 67ff650ebd803365de01d61069e9dc63 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-20 14:30:19 |
Source code size: | 1018 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 333 / 486 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |