Smash test

test debug

Result

Disctinct by selector
Refactoring Smash/Challonge

Test Resultat

Html for Kiouze
This commit is contained in:
2022-03-11 01:14:56 +01:00
parent 45768fff80
commit aebc60d17f
16 changed files with 459 additions and 22 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace LaDOSE.Business.Helper
{
public static class DataHelper
{
public static IEnumerable<T> DistinctBy<T,TKey>(this IEnumerable<T> lst,Func<T,TKey> dist)
{
var seen = new HashSet<TKey>();
foreach (var e in lst)
{
if (!seen.Contains(dist(e)))
{
seen.Add(dist(e));
yield return e;
}
}
}
}
}