1 points•bronsk1y•34 minutes ago•1 comment•

1 comment

bronsk1y33 minutes ago
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

Read the full thread on Hacker News →

Related stories