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

9
LINES

< > BotCompany Repo | #1019249 // hasIntRangesLongerThan (or equal)

JavaX fragment (include)

1  
sbool hasIntRangesLongerThan(final int threshold, L<IntRange> l) {
2  
  for (IntRange r : unnull(l))
3  
    if (r.length() >= threshold) true;
4  
  false;
5  
}
6  
7  
sbool intRangesLongerThan(L<IntRange> l, int threshold) {
8  
  ret hasIntRangesLongerThan(threshold, l);
9  
}

Author comment

Began life as a copy of #1018624

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019249
Snippet name: hasIntRangesLongerThan (or equal)
Eternal ID of this version: #1019249/1
Text MD5: 7cbdd9a4cf6595c630307c48bd5066e2
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-28 16:29:53
Source code size: 262 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 239 / 279
Referenced in: [show references]