Libraryless. Click here for Pure Java version (10700L/58K).
static L<Dbl> deltas(L<? extends Number> l) { int n = l(l); new L<Dbl> deltas; for (int i = 0; i < n-1; i++) deltas.add(toDouble(l.get(i+1)) - toDouble(l.get(i))); ret deltas; }
Began life as a copy of #1036265
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036631 |
Snippet name: | deltas |
Eternal ID of this version: | #1036631/2 |
Text MD5: | 6028e25d9e8e07d13dd6c9070017152c |
Transpilation MD5: | c5e33d9615b021244752e06167269474 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-07-08 00:57:38 |
Source code size: | 195 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 166 / 228 |
Version history: | 1 change(s) |
Referenced in: | [show references] |