Initial commit
This commit is contained in:
commit
b087f272b4
26 changed files with 5345 additions and 0 deletions
29
Numbers/NumberFactory/INumbers.cs
Normal file
29
Numbers/NumberFactory/INumbers.cs
Normal 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; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue