dotnet / dotnet/reactive

[Feature] DistinctBy for IAsyncEnumerable

Open
#1,986 2 comments 10 reactions 0 assignees View on GitHub
[area] Ix
Dominant language
C#
Stars
7.2k
Forks
798
PR merge metrics
No merged PRs in 30d

Description

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:

```cs
public static IAsyncEnumerable DistinctBy(this IAsyncEnumerable source, Func keySelector);
public static IAsyncEnumerable DistinctBy(this IAsyncEnumerable source, Func keySelector, IEqualityComparer);
public static IAsyncEnumerable DistinctBy(this IAsyncEnumerable source, Func> keySelector);
public static IAsyncEnumerable DistinctBy(this IAsyncEnumerable source, Func> keySelector, IEqualityComparer);
```

If approved, I would like to give it a try myself.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.