Libraryless. Click here for Pure Java version (3884L/22K).
static double doubleAvg_gen(Iterable<? extends Number> l) { double sum = 0; long n = 0; fOr (Number i : l) if (i != null) { sum += toDouble(i); } ret doubleRatio(sum, n); }
Began life as a copy of #1024807
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033019 |
Snippet name: | doubleAvg_gen |
Eternal ID of this version: | #1033019/1 |
Text MD5: | 9e2221de0bcc6d2d9b114d4c51db59f9 |
Transpilation MD5: | 1818eca73e5f1c9a5133608e48a22ca6 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-11 12:02:17 |
Source code size: | 190 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 171 / 246 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |