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

12
LINES

< > BotCompany Repo | #1024542 - printVars_str - print a bunch of vars (don't use struct)

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

Libraryless. Click here for Pure Java version (2596L/16K).

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

Author comment

Began life as a copy of #1005990

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xfddqsrefgvo, xrpafgyirdlv

No comments. add comment

Snippet ID: #1024542
Snippet name: printVars_str - print a bunch of vars (don't use struct)
Eternal ID of this version: #1024542/3
Text MD5: 4d7c150cac1563cb32a741dd87072581
Transpilation MD5: 1e9b681755a90d7dad14c35dc59617cb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-24 12:38:42
Source code size: 339 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 104 / 166
Version history: 2 change(s)
Referenced in: [show references]

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