Comments (1)
@qwertie I finally refactored the interfaces to the following:
using System.Collections.Generic;
namespace NetFabric.Hyperlinq
{
public interface IValueEnumerable<out T, TEnumerator>
: IEnumerable<T>
where TEnumerator : struct, IEnumerator<T>
{
new TEnumerator GetEnumerator();
}
public interface IValueReadOnlyCollection<out T, TEnumerator>
: IReadOnlyCollection<T>
, IValueEnumerable<T, TEnumerator>
where TEnumerator : struct, IEnumerator<T>
{
}
public interface IValueReadOnlyList<out T, TEnumerator>
: IReadOnlyList<T>
, IValueReadOnlyCollection<T, TEnumerator>
where TEnumerator : struct, IEnumerator<T>
{
}
}
Check it in the vNext branch.
from netfabric.hyperlinq.
Related Issues (18)
- make EmptyEnumerable a singleton HOT 5
- ToArray Result Element Type is Different Than ToList HOT 8
- Rethink return types HOT 11
- Missing dll in NetFabric.Hyperlinq 3.0.0-beta12 HOT 10
- Api should match Linq (Single, First => SingleOption, FirstOption) HOT 2
- performance optimization for simple objects HOT 2
- Why not make method signatures identical to linq? HOT 5
- unity engine throws error, can be fody or too high .net version not sure HOT 12
- Integration with StructLinq HOT 3
- Consider Making `ArrayPoolExtensions` Public HOT 15
- Experiencing Slow ArrayPool Performance with Enumerables HOT 16
- Blazor/Razor Views No Longer Compatible with Hyperlinq Enumerables HOT 2
- Issue with `AsAsyncValueEnumerable().SingleAsync` HOT 10
- `MemoryValueEnumerable` Uses `SpanEnumerator` When `MemoryEnumerator` is Expected HOT 19
- Select then ToList() doesn't work ? HOT 2
- Sum on ValueEnumerable.Range gives wrong sum
- Distinct on a Value Type doesn't seem to work in all cases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netfabric.hyperlinq.