python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
C# HashSet not using defined IEqualityComparer<>
I am trying to compare two HashSets of objects by using .SetEquals(). I looked at some guides and saw that I needed to implement IEqualityComparer<> as part of the class in order for it to work ...
Unknown
Votes: 0
Answers: 2
HashSet in Apache Freemarker for fast lookup
I have the following code that performs a filter (do not insert duplicates) in Apache Freemarker. To do so, I make use of a list as follows:
<#assign newList = [] />
<#list instructions as in...
snatverk
Votes: 0
Answers: 1
Why does the last element on my HashSet always have a different HashCode? Contains doesn't work properly
I'm making a simple ortography verification tool in Unity(though this shouldn't be relevant, as my problem is a C# one). The basic logic is:
Import a text file containing a words list in the language...
NicoDorito
Votes: 0
Answers: 0
Java - HashSet: Is iterator not random access?
I know the underlying data structure for the hashset is an array. I thought I can get a random value from the hashset by using iterator().next().
I looked at the source code but couldn't really tell. ...
Jasmine Rice
Votes: 0
Answers: 2