utility method and property
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
namespace AdventOfCode2025.Utils;
|
||||
|
||||
public record struct Range(ulong Min, ulong Max);
|
||||
public record struct Range(ulong Min, ulong Max)
|
||||
{
|
||||
public ulong InclusiveCount => Max - Min + 1;
|
||||
|
||||
public bool IsInRange(ulong value) => value >= Min && value <= Max;
|
||||
}
|
||||
Reference in New Issue
Block a user