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

12
LINES

< > BotCompany Repo | #1034513 // renderVars_stringifier

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

Libraryless. Click here for Pure Java version (5066L/28K).

// Use like this: renderVars(+x, +y)
sS mapMethodLike renderVars_stringifier(IStringifier stringifier, O... params) {
  new LS l;
  int i = 0;
  if (odd(l(params))) {
    l.add(stringifier.toString(first(params)));
    ++i;
  }
  for (; i+1 < l(params); i += 2)
    l.add(params[i] + "=" + stringifier.toString(params[i+1]));
  ret trim(joinWithComma(l));
}

Author comment

Began life as a copy of #1024543

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034513
Snippet name: renderVars_stringifier
Eternal ID of this version: #1034513/3
Text MD5: d3096bc355ca423051cbf70ed7abc11a
Transpilation MD5: 246d6bfb09d3a9e60cb2a5958dae5a93
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-10 05:19:23
Source code size: 368 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 115 / 174
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)