Transpiled version (2192L) is out of date.
1 | static double[] concatDoubleArrays(L<double[]> arrays) {
|
2 | int l = 0; |
3 | for (double[] a : unnull(arrays)) l += l(a); |
4 | double[] x = new double[l]; |
5 | int i = 0; |
6 | for (double[] a : unnull(arrays)) if (a != null) {
|
7 | System.arraycopy(a, 0, x, i, l(a)); |
8 | i += l(a); |
9 | } |
10 | ret x; |
11 | } |
12 | |
13 | static double[] concatDoubleArrays(double[]... arrays) {
|
14 | ret concatDoubleArrays(asList(arrays)); |
15 | } |
Began life as a copy of #1025104
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026923 |
| Snippet name: | concatDoubleArrays (allows null arrays) |
| Eternal ID of this version: | #1026923/3 |
| Text MD5: | eb7f307ccef0f79833adf5a80b656a2e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-02 20:25:13 |
| Source code size: | 398 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 460 / 589 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |