/// <summary> /// Returns a range that contains all values strictly less than <paramref name="endpoint"/>. /// </summary> public static Range <C> LessThan <C>(C endpoint) where C : IComparable <C> { return(new Range <C>(Cut.BelowAll <C>(), Cut.BelowValue(endpoint))); }
/// <summary> /// Returns a range that contains all values less than or equal to <paramref name="endpoint"/>. /// </summary> public static Range <C> AtMost <C>(C endpoint) where C : IComparable <C> { return(new Range <C>(Cut.BelowAll <C>(), Cut.AboveValue(endpoint))); }
/// <summary> /// Returns a range that contains every value of type <typeparamref name="C"/>. /// </summary> public static Range <C> All <C>() where C : IComparable <C> { return(new Range <C>(Cut.BelowAll <C>(), Cut.AboveAll <C>())); }