1

Resolved

Sequence generator to easily build enumeratable sequences

description

Under the Smarts.Sequences namespace, start with an Integers class that can be used to generate sequences of Integers. It should implement IEnumerable<int> so that it can be used to load a Set. It can then be used as a base for classes such as Primes and as a framework for creating classes such as Days and Months.

Usage should be expressive, like this:

Integers.From(1).To(100)
Integers.From(5).First(12)
Integers.UpTo(100)
Integers.From(2).To(100).By(2)

comments