Warning: session_start(): open(/var/lib/php/sessions/sess_ne94vs8u93eq3hf3j8pp6f9hkb, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
totalIntRangesLength [1028627]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1028627 // totalIntRangesLength

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2615L/16K).

1  
static long totalIntRangesLength(Iterable<IntRange> l) {
2  
  long total = 0;
3  
  fOr (IntRange r : l) total += r.length();
4  
  ret total;
5  
}

Author comment

Began life as a copy of #1024103

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028627
Snippet name: totalIntRangesLength
Eternal ID of this version: #1028627/1
Text MD5: d512c0386268d5800f4d61d8bd1c5d09
Transpilation MD5: 81620b799986952dc983f8a444763b75
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-29 11:49:39
Source code size: 137 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 612 / 787
Referenced in: [show references]