Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1026561 - dm_showListWithFeedback

JavaX fragment (include) [tags: use-pretranspiled]

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  
}

Author comment

Began life as a copy of #1019482

download  show line numbers  debug dex   

Travelled to 3 computer(s): mqqgnosmbjvj, tvejysmllsmz, 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: 34 / 91
Version history: 9 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1026561 & http://1026561.tinybrain.de