Today I would like to tell you about functional approaches. Why they are good, and why they are simple.
We need to write some code
Let ...
For further actions, you may consider blocking this person and/or reporting abuse
What about
items.GroupBy(a => a.First()).Select(a => a.First()).ToList()?Mathematically this solution is 100% correct :)
Nice!
FYI next time, if you’re writing a codeblock for C# code you can use ‘’’cs in the markdown and it will generate nice colorful C# code
Thank you! :)
so cool!
Good, thanks.
I think dotnet should add the ability to use a predicate instead of IEqualityComparer (and IComparer) in the default api.
Yes!
Or they should add a possibility to implement an interface by delegate.