Libraryless. Click here for Pure Java version (9362L/51K).
sbool intRangesOverlap(IntRange a, IntRange b) { ret intersectIntRanges(a, b) != null; } sbool intRangesOverlap(int a1, int a2, int b1, int b2) { ret intRangesOverlap(intRange(a1, a2), intRange(b1, b2)); }
Began life as a copy of #1029482
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: | #1029483 |
Snippet name: | intRangesOverlap - is also true when intersection has length 0 |
Eternal ID of this version: | #1029483/3 |
Text MD5: | 0d7a0872a0d3504c5baa942e9ca0bf55 |
Transpilation MD5: | 807ec14840b55fd95ca27bc47e7aa512 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-26 23:21:58 |
Source code size: | 216 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 205 / 302 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029484 - intRangeIsPartOf #1029485 - intRangesOverlapNempty |