python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Scala: Set of tuples doesn't allow me to add a "straight" tuple
I have this code of a mutable Hashmap with a mutable Set with tuples:
val field = mutable.HashMap[String, mutable.Set[(Pos3, Pos3)]]()
In foreach loop I'm populating the field
scanner.combinations(...
dr jerry
Votes: 0
Answers: 1
Using update() method for two duplicate sets
I want to add two duplicate sets together. Why does my code return None?
firstset = {1, 2, 3}
secondset = {1, 2, 3}
thirdset = firstset.update(secondset)
print(thirdset)
Amir Sharifi
Votes: 0
Answers: 5
Filter result from a single name in a SET with multiple entries
I have a column of SET type made up of creators of comic books.
In PHP, I do a query to get all the comics with a single creator.
If I do a query using WHERE creator = "John Byrne", I can se...

Mehdi Bouhalassa
Votes: 0
Answers: 0
What is the use case for Set.prototype.entries()?
In JavaScript there is a method entries() that returns an iterator object with array of the key and value for each item in the Set. But key and value in Set are the same thing. So what would be the us...
JoeTidee
Votes: 0
Answers: 0