Libraryless. Click here for Pure Java version (1699L/11K).
1 | static float[] subFloatArray(float[] b, int start) { |
2 | ret subFloatArray(b, start, l(b)); |
3 | } |
4 | |
5 | static float[] subFloatArray(float[] b, int start, int end) { |
6 | start = max(start, 0); end = min(end, l(b)); |
7 | if (start == 0 && end == l(b)) ret b; |
8 | if (start >= end) ret new float[0]; |
9 | float[] x = new float[end-start]; |
10 | System.arraycopy(b, start, x, 0, end-start); |
11 | ret x; |
12 | } |
Began life as a copy of #1024596
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024603 |
Snippet name: | subFloatArray |
Eternal ID of this version: | #1024603/1 |
Text MD5: | c0f3a15a2bd18c9050444891ef7e8603 |
Transpilation MD5: | 8c3cfe702efa4089cf527fab41eabbea |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-19 20:27:20 |
Source code size: | 386 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 267 |
Referenced in: | [show references] |