mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 08:58:00 +02:00
44 lines
535 B
Beef
44 lines
535 B
Beef
![]() |
using System.Collections;
|
||
|
using System.Diagnostics;
|
||
|
|
||
|
namespace System
|
||
|
{
|
||
|
struct Range
|
||
|
{
|
||
|
protected int mStart;
|
||
|
protected int mEnd;
|
||
|
|
||
|
public this()
|
||
|
{
|
||
|
mStart = 0;
|
||
|
mEnd = 0;
|
||
|
}
|
||
|
|
||
|
public this(int start, int end)
|
||
|
{
|
||
|
Debug.Assert(end >= start);
|
||
|
mStart = start;
|
||
|
mEnd = end;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
struct ClosedRange
|
||
|
{
|
||
|
protected int mStart;
|
||
|
protected int mEnd;
|
||
|
|
||
|
public this()
|
||
|
{
|
||
|
mStart = 0;
|
||
|
mEnd = 0;
|
||
|
}
|
||
|
|
||
|
public this(int start, int end)
|
||
|
{
|
||
|
Debug.Assert(end >= start);
|
||
|
mStart = start;
|
||
|
mEnd = end;
|
||
|
}
|
||
|
}
|
||
|
}
|