Top "Set" questions

A set is a collection in which no element is repeated, which may be able to enumerate its elements according to an ordering criterion (an "ordered set") or retain no order (an "unordered set").

How to set background color of a View

I'm trying to set the background color of a View (in this case a Button). I use this code: // set …

android view colors background set
How to construct a set out of list items in python?

I have a list of filenames in python and I would want to construct a set out of all the …

python list set
C# Set collection?

Does anyone know if there is a good equivalent to Java's Set collection in C#? I know that you can …

c# .net collections set
Python set to list

How can I convert a set to a list in Python? Using a = set(["Blah", "Hello"]) a = list(a) doesn't …

python list set
Does Python have an ordered set?

Python has an ordered dictionary. What about an ordered set?

python set
How to convert a set to a list in python?

I am trying to convert a set to a list in Python 2.6. I'm using this syntax: first_list = [1,2,3,4] my_set=…

python list set python-2.6
How can I simulate an array variable in MySQL?

It appears that MySQL doesn't have array variables. What should I use instead? There seem to be two alternatives suggested: …

mysql arrays variables set temp-tables
How to check that an element is in a std::set?

How do you check that an element is in a set? Is there a simpler equivalent of the following code: …

c++ stl set contains
Add list to set?

Tested on Python 2.6 interpreter: >>> a=set('abcde') >>> a set(['a', 'c', 'b', 'e', 'd']) &…

python list set
Best way to convert list to comma separated string in java

I have Set<String> result & would like to convert it to comma separated string. My approach would …

java string list collections set