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


< > BotCompany Repo | #1026561 - dm_showListWithFeedback

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

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");
    code := optParam code(_),
    computerNotes := optParam computerNotes(_));
  dm_callModule(module, 'importItems, list);
  ret module;

sS dm_showListWithFeedback(Cl list, O... _) {
  ret dm_showListWithFeedback(null, list, _);

Author comment

Began life as a copy of #1019482

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, 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: 53 / 122
Version history: 9 change(s)
Referenced in: [show references]

Formerly at &