Initial commit

This commit is contained in:
github-classroom[bot] 2025-04-29 15:03:45 +00:00 committed by GitHub
commit b087f272b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 5345 additions and 0 deletions

View file

@ -0,0 +1,29 @@
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; }
}