I recently started building a NuGet library that allows you to generate lazily evaluated sequences from functions.
I would appreciate if you could review the API of the library or suggest new features!
Example:
using Bronskiy.Sequences;
IEnumerable<int> powersOfTwo = Sequence<int>.Iterate(5, 1, value => value * 2); // 1, 2, 4, 8, 16
IEnumerable<string> words = Sequence<string>.Iterate(3, "a", value => value + "a"); // a, aa, aaa
Hi, everyone, blog author here!
I recently started building a NuGet library that allows you to generate lazily evaluated sequences from functions. I would appreciate if you could review the API of the library or suggest new features!
Example:
using Bronskiy.Sequences;
IEnumerable<int> powersOfTwo = Sequence<int>.Iterate(5, 1, value => value * 2); // 1, 2, 4, 8, 16
IEnumerable<string> words = Sequence<string>.Iterate(3, "a", value => value + "a"); // a, aa, aaa