29 lines
842 B
C#
29 lines
842 B
C#
namespace Numbers.NumberFactory;
|
|
|
|
/// <summary>
|
|
/// Defines the ability to pick numbers which fulfill a certain condition from within a specified range
|
|
/// </summary>
|
|
/// <inheritdoc cref="IEnumerable{T}" />
|
|
public interface INumbers : IEnumerable<long>
|
|
{
|
|
/// <summary>
|
|
/// Gets the n-th matching number in the range
|
|
/// </summary>
|
|
/// <param name="index">Index of the n-th number</param>
|
|
public long this[int index] { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the lower bound of the number range
|
|
/// </summary>
|
|
public long LowerBound { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the upper bound of the number range
|
|
/// </summary>
|
|
public long UpperBound { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the amount of (filtered) numbers in the range
|
|
/// </summary>
|
|
public int Length { get; }
|
|
}
|