Transpiled version (2192L) is out of date.
static double[] concatDoubleArrays(L<double[]> arrays) { int l = 0; for (double[] a : unnull(arrays)) l += l(a); double[] x = new double[l]; int i = 0; for (double[] a : unnull(arrays)) if (a != null) { System.arraycopy(a, 0, x, i, l(a)); i += l(a); } ret x; } static double[] concatDoubleArrays(double[]... arrays) { ret concatDoubleArrays(asList(arrays)); }
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: | 457 / 587 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |