Extend enumerable and array functionalities
Veho is an extension lib for iterable e.g. array, 2d-array and dictionary.
Package | Content |
---|---|
Veho |
The core library, including all Veho sub projects |
Veho.Dictionary |
Extend IDictionary<TK, TV> |
Veho.Entries |
Extend IReadOnlyList<(TK key, TV value)> |
Veho.Enumerable |
Extend IEnumerable |
Veho.Linear |
Perform basic linear algebra for matrix |
Veho.Matrix |
Extend T[,] |
Veho.Mutable.Matrix |
Extend IReadOnlyList<IReadOnlyList> |
Veho.PanBase.Matrix |
Extend T[,] |
Veho.Sequence |
Extend IReadOnlyList to List |
Veho.Tuple |
Extend (T, T), (T, T, T), (T, T, T, T) |
Veho.Types |
Base types in Veho series |
Veho.Vector |
Extend T[] |
Veho targets .NET Standard 2.0, fits both .NET and .NET Framework.
Install Veho package and sub packages.
NuGet Package Manager:
Install-Package Veho
.NET CLI:
dotnet add package Veho
All versions can be found on nuget.
using Veho.Vector
var vecA = new[] {1, 2, 3, 4, 5};
var vecB = new[] {2, 2, 0, 3, 3};
Func<int, int, int> fn = (x, y) => x * y;
var vecC = fn.Zipper(vecA, vecB);
Console.WriteLine(string.Join(", ", vecC));
using Veho.Vector;
var vec = Vec.From(1, 4, 6, 3, 2);
var max = vec.Reduce(Math.Max);
Console.WriteLine(max);
using Veho.Vector;
using Spare;
var arr = Vec.From("a", "b", "c");
arr.Push("d")
Console.WriteLine(arr.Deco())
Veho has a test suite in the test project.
Veho is licensed under the MIT license.
Bug report and contribution are welcome at the GitHub repository.