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

7
LINES

< > BotCompany Repo | #1013401 // renderStructs

JavaX fragment (include)

static S renderStructs(O... params) {
  new L<S> l;
  if (odd(l(params))) l.add(addSuffix(str(first(params)), ":"));
  for (int i = l(params) & 1; i+1 < l(params); i += 2)
    l.add(params[i] + "=" + sfu(params[i+1]));
  ret joinWithSpace(l);
}

Author comment

Began life as a copy of #1013193

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013401
Snippet name: renderStructs
Eternal ID of this version: #1013401/5
Text MD5: 3ca54f72d832b90ed9fd0b89b5952cf6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-15 15:44:03
Source code size: 250 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 509 / 562
Version history: 4 change(s)
Referenced in: [show references]