1 | static <A> A[] singlePlusArray(A a, A[] l) { |
2 | A[] out = newObjectArrayOfSameType(l, l(l)+1); |
3 | out[0] = a; |
4 | arraycopy(l, 0, out, 1, l(l)); |
5 | ret out; |
6 | } |
Began life as a copy of #1019126
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019407 |
Snippet name: | singlePlusArray |
Eternal ID of this version: | #1019407/3 |
Text MD5: | b89ce686d513bdcdd895925de5b57667 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-05 00:54:35 |
Source code size: | 158 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 313 / 364 |
Version history: | 2 change(s) |
Referenced in: | [show references] |