Libraryless. Click here for Pure Java version (3555L/23K).
1 | // list contains strings or pairs (item + reasoning) or WithReasoning |
2 | // optional parameter: S computerNotes |
3 | // optional parameter: O info - an object that will be struct()ed and appended to the computerNotes field |
4 | // This version uses str(makeList) for "code" field |
5 | sS dm_showListWithFeedback(F0<? extends Cl> makeList, O... _) { |
6 | S code = str(makeList); |
7 | optPar S computerNotes; |
8 | optPar O info; |
9 | if (info != null) |
10 | computerNotes = joinNemptiesWithEmptyLines(computerNotes, struct(info)); |
11 | ret dm_showListWithFeedback(makeList!, paramsPlus_noOverwrite(_, +code, +computerNotes)); |
12 | } |
13 | |
14 | sS dm_showListWithFeedback(S description, Collection list, O... _) { |
15 | S module = dm_showNewModule("#1026559/ListWithFeedback"); |
16 | dm_setAll(module, |
17 | +description, |
18 | code := optParam code(_), |
19 | computerNotes := optParam computerNotes(_)); |
20 | dm_callModule(module, 'importItems, list); |
21 | ret module; |
22 | } |
23 | |
24 | sS dm_showListWithFeedback(Cl list, O... _) { |
25 | ret dm_showListWithFeedback(null, list, _); |
26 | } |
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: | 332 / 486 |
Version history: | 9 change(s) |
Referenced in: | [show references] |