Libraryless. Click here for Pure Java version (9660L/54K).
static L<IntRange> assertProperStreaks(L<IntRange> l) { int n = l(l); for (int i = 0; i+1 < n; i++) if (l.get(i+1).start <= l.get(i).end) fail("assertProperStreaks", str(l)); ret l; }
Began life as a copy of #1025106
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035638 |
Snippet name: | assertProperStreaks |
Eternal ID of this version: | #1035638/3 |
Text MD5: | 434650c64687c108e73e1ecf226ace87 |
Transpilation MD5: | fc3250ae6a97fd503100548d24a65229 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-27 06:29:28 |
Source code size: | 205 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 112 / 161 |
Version history: | 2 change(s) |
Referenced in: | [show references] |