1 | static double[] diffsBetweenPairsOfDoubles(double[] l) { |
2 | int n = l(l)/2; |
3 | if (n < 1) ret emptyDoubleArray(); |
4 | double[] diffs = new[n]; |
5 | for i to n: |
6 | diffs[i] = l[i*2]-l[i*2+1]; |
7 | ret diffs; |
8 | } |
Began life as a copy of #1032702
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032704 |
Snippet name: | diffsBetweenPairsOfDoubles |
Eternal ID of this version: | #1032704/1 |
Text MD5: | bac12337b759caf94f1e130fc0cf3a2e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-02 05:20:42 |
Source code size: | 206 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 140 / 166 |
Referenced in: | [show references] |