Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1036512 // cloneSubDoubleArray (always return a copy)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (263L) is out of date.

static double[] cloneSubDoubleArray(double[] b, int start, int end) {
  start = max(start, 0); end = min(end, l(b));
  if (start >= end) ret new double[0];
  double[] x = new[end-start];
  System.arraycopy(b, start, x, 0, end-start);
  ret x;
}

Author comment

Began life as a copy of #1032902

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036512
Snippet name: cloneSubDoubleArray (always return a copy)
Eternal ID of this version: #1036512/4
Text MD5: 2bf1185bf2df1a514d338ec149a12b8d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-21 20:07:25
Source code size: 250 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 70 / 103
Version history: 3 change(s)
Referenced in: [show references]