LinqGen
LinqGen copied to clipboard
Alloc-free and fast replacement for Linq, with code generation
Hey there, I wanted to test this out and get a feel for what it could bring to my project, but unfortunately, I received an error right off the bat....
This issue raise 2 problems - for further upvote of #11 ~~and add `Contains` support, its implementation is just `Any` with predicate for compare, or `Where` + `FirstOrDefaule` or even...
Repro: ```csharp using System.Collections; using Cathei.LinqGen; var input = new[] { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 }; foreach (var item in GenericTest.Caster(input, "foo")) { Console.WriteLine($"{item.Item1}...
So we could do this: `int val = list.Gen().FirstOrDefault(/*predicate*/)` insead of `int val = list.Gen().Where(/*predicate/*).FirstOrDefault()`
Since the support for Microsoft.CodeAnalysis.CSharp 4.1.0 has been added to Unity 2022.2+, could you start working on incremental generator? Thanks.
### Problem Consider the following code ```charp using Cathei.LinqGen; int[] array = new int[] { 1, 2, 3, 4, 5 }; int upperLimit = 3; int result = array.Gen() .Where(x...
First of all, I want to express my appreciation for this library. It has been incredibly useful, and I truly appreciate your work on it. However, I have encountered an...
expect to call `Dispose` on local enumerator in a `try-finally` block, like below ``` C# public bool Any(Func predicate) { var copy = this; global::System.Collections.Generic.IEnumerator enumerator_sn0QN1 = default; enumerator_sn0QN1 =...