First implementation
This commit is contained in:
1 parent
98c02ef0ed
commit
6a58917120
12 files changed
+662
No files matched your search
@@ -0,0 +1,10 @@
|
||||
namespace Recyclable.Collections
|
||||
{
|
||||
internal class FrequencyTupleComparer<TKey, TValue> : IComparer<(TKey Key, TValue Value)>
|
||||
{
|
||||
private static readonly IComparer<TKey> _baseComparer = Comparer<TKey>.Default;
|
||||
|
||||
public int Compare((TKey Key, TValue Value) x, (TKey Key, TValue Value) y)
|
||||
=> _baseComparer.Compare(x.Key, y.Key);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user