Menu

Bronskiy.Sequences
📰

Bronskiy.Sequences

DEV Community: csharp·Artem Kazantsev·2 days ago
#gWLIb3rl
#devtocsharp#devto#dev#value#nuget
Reading 0:00
15s threshold

Artem Kazantsev

Hi, everyone!
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

Enter fullscreen mode Exit fullscreen mode

Links