mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-23 20:18:24 +00:00
8 lines
241 B
C#
8 lines
241 B
C#
namespace NftFaucet.Extensions;
|
|
|
|
public static class EnumerableExtensions
|
|
{
|
|
public static IEnumerable<T> Duplicates<T>(this IEnumerable<T> source)
|
|
=> source.GroupBy(x => x).Where(kvp => kvp.Count() > 1).Select(kvp => kvp.Key);
|
|
}
|