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

5
LINES

< > BotCompany Repo | #1030987 // prependParamIfOddCount

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

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

static O[] prependParamIfOddCount(O x, O[] params) {
  if (odd(l(params)))
    ret itemPlusObjectArray(x, params);
  ret params;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030987
Snippet name: prependParamIfOddCount
Eternal ID of this version: #1030987/1
Text MD5: 6c7aa2ff95f88b5f2571cc1136a33113
Transpilation MD5: 09dc8ccb1c9bd5dc26b53e104d3de5e0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-18 17:16:55
Source code size: 134 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 155 / 227
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)