Libraryless. Click here for Pure Java version (40L/1K).
1 | static O[] concatMethodArgs(O[] args1, O[] args2) {
|
2 | int n1, n2; |
3 | if (args1 == null || (n1 = args1.length) == 0) ret args2; |
4 | if (args2 == null || (n2 = args2.length) == 0) ret args1; |
5 | |
6 | // actual concat |
7 | O[] args = new[n1+n2]; |
8 | for i to n1: |
9 | args[i] = args1[i]; |
10 | for i to n2: |
11 | args[n1+i] = args2[i]; |
12 | ret args; |
13 | } |
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: | 742 / 891 |
| Referenced in: | [show references] |