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).

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

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: 131 / 214
Referenced in: [show references]