Libraryless. Click here for Pure Java version (40L/1K).
static O[] concatMethodArgs(O[] args1, O[] args2) { int n1, n2; if (args1 == null || (n1 = args1.length) == 0) ret args2; if (args2 == null || (n2 = args2.length) == 0) ret args1; // actual concat O[] args = new[n1+n2]; for i to n1: args[i] = args1[i]; for i to n2: args[n1+i] = args2[i]; ret args; }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034769 |
Snippet name: | concatMethodArgs |
Eternal ID of this version: | #1034769/1 |
Text MD5: | 6d7566aa8486e4a1bdaeee9a730ab293 |
Transpilation MD5: | d0b68860b92f5855330e5248b0cd0611 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-08 07:03:09 |
Source code size: | 339 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 118 / 174 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |