We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For the IEnumerable DistinctBy was already added in .Net 6.
This feature is currently missing for the IAsynEnumerable.
I therefore propose to add the following API:
public static IAsyncEnumerable<TSource> DistinctBy<TSource, TKey>(this IAsyncEnumerable<T> source, Func<TSource, TKey> keySelector); public static IAsyncEnumerable<TSource> DistinctBy<TSource, TKey>(this IAsyncEnumerable<T> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>); public static IAsyncEnumerable<TSource> DistinctBy<TSource, TKey>(this IAsyncEnumerable<T> source, Func<TSource, ValueTask<TKey>> keySelector); public static IAsyncEnumerable<TSource> DistinctBy<TSource, TKey>(this IAsyncEnumerable<T> source, Func<TSource, valueTask<TKey>> keySelector, IEqualityComparer<TKey>);
If approved, I would like to give it a try myself.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For the IEnumerable DistinctBy was already added in .Net 6.
This feature is currently missing for the IAsynEnumerable.
I therefore propose to add the following API:
If approved, I would like to give it a try myself.
The text was updated successfully, but these errors were encountered: