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

12
LINES

< > BotCompany Repo | #1031334 // printVars_struct - print a bunch of vars as structures

JavaX fragment (include)

// Use like this: printVars_struct(+x, +y);
// Or: printVars_struct("bla", +x);
// Or: printVars_struct bla(, +x);
svoid mapMethodLike printVars_struct(O... params) {
  S s = "";
  if (odd(l(params))) {
    s = str(first(params));
    if (endsWithLetter(s)) s += ": ";
    params = dropFirst(params);
  }
  print(s + renderVars(params));
}

Author comment

Began life as a copy of #1005990

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031334
Snippet name: printVars_struct - print a bunch of vars as structures
Eternal ID of this version: #1031334/2
Text MD5: 081382bb630072b0c6b60150b31ef524
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-05 09:09:49
Source code size: 350 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 81 / 112
Version history: 1 change(s)
Referenced in: [show references]