Libraryless. Click here for Pure Java version (3884L/22K).
1 | static double doubleAvg_gen(Iterable<? extends Number> l) {
|
2 | double sum = 0; |
3 | long n = 0; |
4 | fOr (Number i : l) |
5 | if (i != null) { sum += toDouble(i); }
|
6 | ret doubleRatio(sum, n); |
7 | } |
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: | 392 / 511 |
| Referenced in: | [show references] |