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

8
LINES

< > BotCompany Repo | #1034237 // renderRecordVars

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

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

// Use like this: renderRecordVars("MyRecord", +x, +y)
sS mapMethodLike renderRecordVars(S recordName, O... params) {
  new LS l;
  int i = 0;
  for (; i+1 < l(params); i += 2)
    l.add(params[i] + "=" + params[i+1]);
  ret formatFunctionCall(recordName, l);
}

Author comment

Began life as a copy of #1024543

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1034237
Snippet name: renderRecordVars
Eternal ID of this version: #1034237/1
Text MD5: 37a79f19439e7ad909bf54cad410763c
Transpilation MD5: 3f950d4d6865208f7a63a45ed0300f57
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 06:30:37
Source code size: 268 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 81 / 140
Referenced in: [show references]