Sequences is a port of Scala's Stream[+A] to C#.
A Sequence<T> is an immutable lazy list whose elements are only evaluated when they are needed. A sequence is composed by a head (the first element) and a lazily-evaluated tail (the remaining elements).
The fact that the tail is lazily-evaluated, makes it easy to represent infinite series or sets.
See the project's page for examples: https://github.com/dcastro/Sequences
Install-Package Sequences -Version 1.0.1
dotnet add package Sequences --version 1.0.1
<PackageReference Include="Sequences" Version="1.0.1" />
paket add Sequences --version 1.0.1
- Improved iterators to allow a more efficient garbage collection;
- Added IndexOfSlice and ContainsSlice.
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.