1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 08:58:00 +02:00
Beef/IDE/mintest/minlib/src/System/Range.bf

44 lines
535 B
Beef
Raw Normal View History

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;
}
}
}