1 | static double totalLengthOfDoubleRanges(Iterable<DoubleRange> l) { |
2 | double sum = 0; |
3 | fOr (DoubleRange r : l) sum += r.length(); |
4 | ret sum; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024621 |
Snippet name: | totalLengthOfDoubleRanges |
Eternal ID of this version: | #1024621/2 |
Text MD5: | 2ff7ecbbb8d9d826806bece4687cdc57 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-11 14:44:33 |
Source code size: | 146 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 205 / 249 |
Version history: | 1 change(s) |
Referenced in: | [show references] |