Implementing only a hashed set in C #

Some of the dialogue from this question turned out to be ugly, and I was asked to ask a new question, but since there is an answer, I can’t remove it, despite the similarities (rather lame, Stackoverflow).

Please check out this question:

Implementing hashable HashSet content in C # (e.g. `frozenset in python`)

+4
source share
1 answer

You need an ImmutableHashSet<> . Your time is good, it is available through NuGet in the Microsoft.Collections.Immutable package .

For background, see Immutable Collections Preview released on NuGet . A video of Inside Immutable Collections is also available.

+6
source

Source: https://habr.com/ru/post/1499557/


All Articles